Skip to content

tanvirpiyal/practice_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

About

A collection of Python practice exercises and mini-projects from beginner to intermediate levels.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages