Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/muhammadalamzeb/python_projects/llms.txt

Use this file to discover all available pages before exploring further.

Every project in this collection runs directly from a terminal — no graphical launcher required. You start each script with the python3 command followed by the filename, interact with it through the command line, and stop it when you’re done.

Open a terminal for your operating system

Open Finder, then go to Applications → Utilities → Terminal. Alternatively, press Cmd + Space, type Terminal, and press Enter.Once open, navigate to the folder containing the scripts:
cd path/to/python_projects
Run any script with:
python3 Calculator_With_History.py
On some Windows systems, python3 may not be available. Use py or python as a substitute. All three invoke the same interpreter when Python is installed via the official installer.

General workflow

1

Open your terminal

Use the instructions for your operating system above to launch a terminal window.
2

Navigate to the project directory

cd path/to/python_projects
Replace path/to/python_projects with the actual path where you saved the scripts. Use ls (macOS/Linux) or dir (Windows) to confirm the .py files are listed.
3

Verify your Python version

python3 --version
You need Python 3.6 or later. The output should look like Python 3.x.x. If Python is not found, install it from python.org.
4

Run a script

python3 Calculator_With_History.py
Substitute any other filename to run a different project. The script starts immediately and prompts you for input.

Stopping a script

Press Ctrl+C at any time to interrupt a running script and return to the terminal prompt. Most scripts also have a built-in exit — the calculator accepts Quit, the dice game and restaurant system accept n — but Ctrl+C works universally across all of them.

Checking that Python is installed

python3 --version
If this command prints a version number (e.g., Python 3.11.4), you’re ready to run any script in this collection. If it returns an error like command not found, install Python from python.org/downloads and follow the installer instructions for your operating system.
In the terminal, press the Tab key while typing a filename to autocomplete it. For example, type python3 Cal and press Tab — the terminal will complete it to python3 Calculator_With_History.py, saving you from typing the full name.

Build docs developers (and LLMs) love