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.

Python Projects is a collection of five standalone command-line applications, each contained in a single .py file. Every script runs with one command — no package installation, no virtual environments, no configuration files. All five projects use only Python’s standard library, so the only requirement is Python itself. Whether you want to explore how a simple game loop works, see how user input is validated, or understand how data can be saved to a file between sessions, each project demonstrates a different set of core Python concepts in a focused, readable script.

Projects in this collection

Calculator with History

A four-operation calculator that evaluates space-separated expressions like 5 + 3 and logs every result to history.txt. Review or clear your history at any time from the prompt.

Number Guessing Game

The script picks a random number between 1 and 100. Enter guesses and receive “Too high” or “Too low” feedback until you find the exact number.

Dice Game

Rolls two six-sided dice using random.randint and displays the result. Type y to roll again or n to stop — as many rounds as you like.

Fake Headline Generator

Randomly combines subjects, actions, and places to produce absurd breaking-news headlines. Keep generating by typing Y, or stop with any other input.

Restaurant Management System

Browse a five-item menu (Pizza, Pasta, Burger, Salad, Coffee), add items to your order, and see the running total in PKR. Confirm when you are done to see your final bill.

Prerequisites

You need the following before running any project:
  • Python 3.6 or later — check with python3 --version
  • Any operating system — macOS, Linux, and Windows are all supported
  • No third-party packages — every script imports only from the Python standard library (random, file I/O builtins)
No pip install, no requirements.txt, no virtual environment setup is required.
All five scripts are fully self-contained single files. You can copy any one of them to a different directory and run it independently — it carries no dependencies on the other files in the repository.

Build docs developers (and LLMs) love