A collection of Python exercises and mini-projects designed for beginners to intermediate learners. This repository is perfect for anyone who wants to practice Python fundamentals and build small, real-world simulations.
- Basic Input & Output
- Take name and age, calculate next yearβs age.
- Two-Input Calculator
- Perform addition, subtraction, multiplication, and division with two numbers.
- Random Number Guessing Game
- Guess a number between 1β10 with hints (
higher/lower).
- Guess a number between 1β10 with hints (
- Multiplication Table
- Generate multiplication tables for any number.
- Python Quiz
- Small 3-question quiz on Python basics, tracks score.
- Dictionary Practice
- Create a contact book with names and numbers.
- Shopping Cart Simulator
- Menu-driven cart: add, remove, view items, calculate total.
- Advanced Shopping Cart
- Improved version with input validation and user-friendly messages.
- Take user input and process data.
- Learn basic arithmetic and control flow (
if/elif/else). - Practice loops (
while,for) and exception handling (try/except). - Work with Python dictionaries to store key-value data.
- Build simple real-world simulations like quizzes and shopping carts.
- Clone the repository:
git clone https://github.com/tanvirpiyal/practice_python.git
cd practice_python
python script_name.py
python level0_basic_input.py