Python Projects
Build real programs. Every project has full source code, step-by-step instructions and expected output.
1. Number Guessing Game
Build a console game where the computer picks a secret number and you guess it in 7 tries. Practise loops, input checks, functions and modules.
2. Simple Calculator
Build a safe command-line calculator that understands brackets, functions, variables and the last answer, using the ast module instead of eval().
3. To-Do List Manager
Create a command-line to-do list that adds, lists, completes and deletes tasks with priorities and saves everything in a JSON file between runs.
4. Temperature Converter
Build a console tool that converts temperatures between Celsius, Fahrenheit and Kelvin. Practise functions, input checks, f-strings and clean program structure.
5. Rock Paper Scissors
Create the classic hand game against the computer. You play 5 rounds, the program keeps score and names a winner. Practise dictionaries, random and functions.
6. Console Quiz Game
Build a multiple choice quiz that asks 5 Python questions, checks answers, shows the right one when you fail and grades your final score.
7. Password Strength Checker
Write a tool that gives a password a score from 0 to 100, draws a text bar and lists tips to improve it. Practise strings, the string module and scoring rules.
8. Contact Book
Build a menu-driven contact book that stores names, phones and emails in a JSON file, with add, search, edit, delete and list features.
9. Unit Converter
Create a command-line converter for length, weight, volume and temperature using lookup tables and clear error messages.
10. Tic-Tac-Toe
Play Tic-Tac-Toe in the terminal against a computer that wins when it can, blocks your wins, and otherwise picks the best free square.
11. Expense Tracker (CSV)
Track daily expenses in a CSV file: add, list, delete, and summarise by category and month, with date and amount validation.
12. Student Grade Manager
A command-driven program that records student marks, saves them in a JSON file, and prints averages, letter grades, the top student and subject statistics.