Skip to content

Latest commit

 

History

History
52 lines (40 loc) · 1.58 KB

File metadata and controls

52 lines (40 loc) · 1.58 KB

Practice Python 🐍

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.


🚀 Features

Level 0 – Basics

  • Basic Input & Output
    • Take name and age, calculate next year’s age.
  • Two-Input Calculator
    • Perform addition, subtraction, multiplication, and division with two numbers.

Level 1 – Logic & Loops

  • Random Number Guessing Game
    • Guess a number between 1–10 with hints (higher/lower).
  • Multiplication Table
    • Generate multiplication tables for any number.
  • Python Quiz
    • Small 3-question quiz on Python basics, tracks score.

Level 2 – Data Structures & Simulations

  • 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.

💡 Learning Goals

  • 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.

📂 How to Run

  1. Clone the repository:
git clone https://github.com/tanvirpiyal/practice_python.git
cd practice_python
python script_name.py
python level0_basic_input.py