Skip to main content

Learning Resources

Projects

A curated set of Python project ideas from beginner to capstone. Each idea lists the features to implement, a realistic time estimate, and the exact concepts required — every concept linked to its lesson.

Project Ideas

Python Projects — Ideas & Concepts Required

26 project ideas from your first console program to portfolio-grade OOP, collections, and concurrency work. Each idea has a brief, features to implement, the exact Python concepts it exercises (linked to lessons), and a time estimate — plus a build guide with suggested modules and classes, step-by-step milestones, a sample run, stretch goals, and the question an interviewer is likely to ask about it.

Which Project Should I Build?

If your goal is…Start with
Your first program after loopsNumber Guessing Game or ATM Simulator
Practise lists, dicts, and functionsStudent Marks Analyser
Learn file handlingExpense Tracker or Contact Book
Show OOP in interviewsBank Account Hierarchy or Employee Payroll
Prepare for low-level design roundsParking Lot System and Library Management
Show collections masteryWord Frequency or Inventory Management
Show concurrencyTask Queue + Worker or Concurrent Download Simulator
One portfolio showpiecePersonal Finance Manager or Hotel Room Booking

Build at least one project from each tier. For placements, two solid projects — one OOP-heavy, one Collections- or concurrency-heavy — with clean READMEs are worth more than ten half-finished ones.

Beginner Projects

After Phase 2 · 6 projects

Console programs that need input(), decisions, loops, lists/strings, and functions. Finish one in a sitting and put it on your resume early.

Menu-Driven Calculator 4–6 hrs

A looping calculator with arithmetic, power, and percentage — practise clean menus and input validation with try/except in Python.

Features to implement

  • Numbered menu that repeats until quit
  • Divide-by-zero and bad-input handling
  • Optional history of the last N results

Concepts required

Build guide — modules, steps & sample run

Suggested modules & classes

  • calculator.py — Functions: add, subtract, multiply, divide, power, percent
  • history — A collections.deque(maxlen=N) that keeps the last N results
  • app.py — main() loop — shows the menu, reads input, prints results

Build it step by step

  1. Print the menu and read a choice inside a while True loop.
  2. Write one function per operation and map choices to them with a dict.
  3. Validate numbers with try/except ValueError and reject division by zero.
  4. Add the history deque and a Show history option.
  5. Format every result with an f-string such as f"{result:.2f}".

Sample run

1 Add  2 Subtract  3 Multiply  4 Divide  5 Power  0 Exit
Choice: 4
First number: 10
Second number: 0
Error: cannot divide by zero
Choice: 5
First number: 2
Second number: 10
Result: 1024.00

Stretch goals

  • Parse a full expression such as 12 + 7 * 2 safely
  • Add square root and modulus
  • Save history to a file on exit

Interview angle: Explain how invalid input is handled without crashing — try/except ValueError plus a retry loop.

Number Guessing Game 3–4 hrs

Computer picks a secret number; player guesses with higher/lower hints and a score by attempts.

Features to implement

  • Random number generation
  • Difficulty levels
  • Play-again loop

Concepts required

Build guide — modules, steps & sample run

Suggested modules & classes

  • GuessingGame — Secret number, attempts, and the check(guess) logic
  • levels — Dict of difficulty name to (low, high, max_attempts)
  • app.py — Difficulty menu, play-again loop, best score

Build it step by step

  1. Generate the secret with random.randint(low, high).
  2. Loop: read a guess, print Too high / Too low, count attempts.
  3. Stop when the guess is right or attempts run out.
  4. Add Easy (1–50), Medium (1–100), and Hard (1–500) levels.
  5. Track the best score across rounds.

Sample run

Level (1 Easy, 2 Medium, 3 Hard): 2
Guess (1-100): 50
Too high!
Guess (1-100): 25
Too low!
Guess (1-100): 37
Correct! You took 3 attempts. Best: 3
Play again? (y/n): n

Stretch goals

  • Warmer / colder hints based on distance
  • Save the high score to a file
  • Reverse mode: the computer guesses your number with binary search

Interview angle: Why binary search needs at most 7 guesses for 1–100 (log₂100 ≈ 6.6).

Pattern Printing Studio 3–5 hrs

Prints pyramids, diamonds, and number patterns of user-chosen size with a tidy menu.

Features to implement

  • At least eight patterns
  • User-controlled size
  • One function per pattern

Concepts required

Build guide — modules, steps & sample run

Suggested modules & classes

  • patterns.py — One function per pattern, each taking a size n
  • PATTERNS — Dict that maps menu choices to pattern functions
  • app.py — Menu, size input, and dispatch to the right function

Build it step by step

  1. Start with a right triangle of stars using two nested loops.
  2. Add the pyramid: print spaces and stars per row with string repetition ("*" * k).
  3. Build the diamond from an upper and a lower pyramid.
  4. Add number patterns such as Floyd and Pascal triangles.
  5. Wire everything into a menu with size validation.

Sample run

Pattern (1 Triangle, 2 Pyramid, 3 Diamond): 2
Size: 4
   *
  ***
 *****
*******

Stretch goals

  • Hollow versions of each shape
  • Let the user choose the character
  • Write the pattern to a text file with pathlib

Interview angle: Describe how the row number decides the count of spaces and stars in each line.

Unit Converter 3–5 hrs

Converts temperature, length, and weight categories with f-string formatted output.

Features to implement

  • Category menu
  • Two-way conversion
  • f-string decimal formatting

Concepts required

Build guide — modules, steps & sample run

Suggested modules & classes

  • converter.py — Conversion functions per category
  • FACTORS — Dict of unit to factor relative to a base unit
  • app.py — Category menu, from / to units, formatted output

Build it step by step

  1. Pick three categories: temperature, length, and weight.
  2. Convert through a base unit (metre, kilogram) so you avoid n × n formulas.
  3. Read the value and units, and validate them against the dict keys.
  4. Print results with f-strings such as f"{value:.3f}".
  5. Add a reverse-conversion shortcut.

Sample run

Category (1 Temperature, 2 Length, 3 Weight): 1
From (C/F/K): C
To (C/F/K): F
Value: 37
37.000 C = 98.600 F

Stretch goals

  • Store conversion factors in an Enum
  • Load currency rates from a JSON file
  • Convert a whole list of values with a comprehension

Interview angle: Why converting through a base unit keeps the code short and easy to extend.

Student Marks Analyser 5–7 hrs

Read marks for a class into lists, compute average/topper, and print a grade sheet.

Features to implement

  • Input validation
  • Average and rank list
  • Pass/fail summary

Concepts required

Build guide — modules, steps & sample run

Suggested modules & classes

  • analyser.py — average, highest, lowest, grade(mark), rank list
  • marks — Dict of student name to mark, or a list of tuples
  • app.py — Reads the class and prints the report

Build it step by step

  1. Read the student count, then fill the names and marks.
  2. Compute total, average, highest, and lowest with sum(), max(), and min().
  3. Assign grades with an elif ladder.
  4. Sort with sorted(items, key=lambda x: x[1], reverse=True) to build the rank list.
  5. Print a neat table using f-string width specifiers.

Sample run

Name        Marks  Grade
Asha           92  A
Ravi           78  B
Kiran          55  D
Average: 75.00  Topper: Asha  Passed: 3/3

Stretch goals

  • Five subjects per student with a nested dict
  • Read the class from a CSV file
  • Grade histogram drawn with stars

Interview angle: How names and marks stayed aligned while sorting — a dict or a list of tuples, not two separate lists.

ATM Simulator 4–6 hrs

PIN login, balance enquiry, deposit, withdrawal, and a mini statement in a looping console menu.

Features to implement

  • Three PIN attempts, then the card is blocked
  • Withdrawals in multiples of 100 with a balance check
  • Mini statement of the last five transactions

Concepts required

Build guide — modules, steps & sample run

Suggested modules & classes

  • Atm — balance, pin, failed attempts, last five transactions in a deque
  • app.py — Login, menu loop, and exit

Build it step by step

  1. Ask for the PIN; block the card after three wrong tries.
  2. Show a menu: balance, deposit, withdraw, mini statement, exit.
  3. Allow withdrawals only in multiples of 100 and within the balance.
  4. Record each transaction in deque(maxlen=5) so the oldest drops automatically.
  5. Add a change-PIN option with confirmation.

Sample run

Enter PIN: ****
1 Balance  2 Deposit  3 Withdraw  4 Mini statement  0 Exit
Choice: 3
Amount: 2550
Amount must be a multiple of 100
Amount: 2500
Please collect your cash. Balance: 7,500.00

Stretch goals

  • Several accounts selected by card number
  • Daily withdrawal limit
  • Note dispensing: count of 500, 200, and 100 notes

Interview angle: How deque(maxlen=5) keeps only the last five entries without manual index math.

Intermediate Projects

After Phase 3 · 5 projects

Projects that combine strings, dictionaries, files, modules, and clearer modular design — still mostly console, but they feel like real tools.

Text Analyser 6–8 hrs

Analyse a paragraph or file for word count, unique words, and frequency — a warm-up for dict and Counter later.

Features to implement

  • Word and sentence counts
  • Frequency table
  • Case-insensitive option

Concepts required

Build guide — modules, steps & sample run

Suggested modules & classes

  • text_stats.py — Counts words, sentences, characters, and vowels
  • frequency.py — Word → count dict (manual first, Counter later)
  • app.py — Reads text from the keyboard or a file and prints the report

Build it step by step

  1. Read the text with input() or Path(file).read_text(encoding="utf-8").
  2. Lower-case it, remove punctuation with re.sub, and split on whitespace.
  3. Count sentences by the . ! ? characters.
  4. Count word frequencies with a dict and print the top five.
  5. Report the longest word and average word length.

Sample run

Words: 128  Sentences: 9  Characters: 712
Top words: the(11) python(7) is(6) a(5) code(4)
Longest word: encapsulation  Average length: 4.6

Stretch goals

  • Ignore stop words such as the, a, is
  • Estimated reading time
  • Common words between two files using set intersection

Interview angle: How words were normalised (case and punctuation) so Python and python count as one word.

Quiz Application 7–9 hrs

Multiple-choice quiz with a question bank, live scoring, and a review screen.

Features to implement

  • List-of-dicts question bank
  • Score tracking
  • Optional JSON-loaded questions

Concepts required

Build guide — modules, steps & sample run

Suggested modules & classes

  • Question — dataclass with text, four options, correct index
  • loader.py — Reads questions from questions.json
  • QuizEngine — Shuffles, asks, scores, and remembers wrong answers
  • app.py — Menu and result screen

Build it step by step

  1. Create the Question dataclass and hard-code five questions.
  2. Loop through them, read A–D, and keep the score.
  3. Show a review of wrong answers with the correct option.
  4. Load questions from a JSON file instead of code.
  5. Shuffle the order with random.shuffle and add a time limit per quiz.

Sample run

Q3. Which keyword defines a function in Python?
 A) func   B) def   C) lambda   D) fn
Your answer: B
Correct!  Score: 3/3

Stretch goals

  • Categories and difficulty levels
  • High-score file with player names
  • Negative marking

Interview angle: Why question data (Question) is separated from quiz logic (QuizEngine).

Tic-Tac-Toe (Two Player) 6–8 hrs

Console board game with win/draw detection and invalid-move handling.

Features to implement

  • 3×3 board rendering
  • Win and draw detection
  • Replay option

Concepts required

Build guide — modules, steps & sample run

Suggested modules & classes

  • Board — 3×3 list of lists; place(), is_full(), render()
  • win_checker.py — Checks rows, columns, and both diagonals
  • Game — Turn loop, player switching, replay, score

Build it step by step

  1. Print an empty 3×3 board with row and column numbers.
  2. Read a move; reject out-of-range or occupied cells.
  3. Check for a win after each move with loops (or all()), not eight if statements.
  4. Declare a draw when the board is full.
  5. Track scores across rounds.

Sample run

 X | O | X
---+---+---
   | X | O
---+---+---
   |   | X
Player X wins!  Score  X: 1  O: 0

Stretch goals

  • Single-player mode: win, else block, else random
  • N×N board with K in a row
  • Unbeatable AI with minimax recursion

Interview angle: How win detection uses loops over rows and columns plus two diagonal checks.

Contact Book (File-Backed) 8–12 hrs

Add/search/list contacts stored in a JSON or CSV file, organised in a small package.

Features to implement

  • CRUD-lite operations
  • Search by name
  • Persist between runs

Concepts required

Build guide — modules, steps & sample run

Suggested modules & classes

  • Contact — dataclass: name, phone, email with validation
  • repository.py — Loads and saves contacts.json
  • service.py — Add, search, update, delete
  • app.py — Menu (package contacts/)

Build it step by step

  1. Create a package: models.py, repository.py, service.py, app.py.
  2. Implement add and list in memory first.
  3. Save to JSON after every change and load on start.
  4. Search by partial, case-insensitive name.
  5. Validate the phone (10 digits) and email with a simple regex.

Sample run

1 Add  2 List  3 Search  4 Delete  0 Exit
Choice: 3
Name contains: ra
Ravi Kumar    9876543210  ravi@mail.com
Rashmi Rao    9123456780  rashmi@mail.com

Stretch goals

  • Reject duplicate phone numbers
  • Sort by name
  • Export to vCard format

Interview angle: How file reading and writing stays separate from the menu code (repository layer).

Expense Tracker (CLI) 8–10 hrs

Log daily expenses with categories and show totals by category from a CSV file.

Features to implement

  • Append-only log
  • Category totals
  • Date handling with datetime

Concepts required

Build guide — modules, steps & sample run

Suggested modules & classes

  • Expense — dataclass: date, category, amount, note
  • expense_log.py — Appends to and reads expenses.csv with csv.DictWriter / DictReader
  • report.py — Totals by category and by month
  • app.py — Menu

Build it step by step

  1. Fix the CSV format: date,category,amount,note.
  2. Append one row per expense with open(path, "a", newline="").
  3. Read all rows and parse amounts with float() or Decimal().
  4. Print totals per category with a defaultdict.
  5. Filter by month using the YYYY-MM prefix of the date.

Sample run

Category      Total
Food       2,450.00
Travel     1,200.00
Bills      3,800.00
2026-10 total: 7,450.00

Stretch goals

  • Monthly budget with an over-budget warning
  • Use datetime.date for real date handling
  • Bar chart drawn with # characters

Interview angle: How a corrupt CSV row is skipped and reported instead of crashing the program.

Advanced Projects

After Phases 4–6 · 10 projects

Design with classes, collections, files, and threads. These look strong on a resume and match typical campus / junior interviews.

Student Record OOP System 10–15 hrs

Manage student objects with encapsulated fields, file persistence, and search/sort helpers.

Features to implement

  • Class with validated properties
  • Add / display / search / update
  • Save and load from JSON

Concepts required

Build guide — modules, steps & sample run

Suggested modules & classes

  • Student — private _marks via @property; validated setter; __repr__
  • StudentRepository — list[Student] plus save / load to students.json
  • StudentService — add, find_by_id, update, delete, sort
  • app.py — Menu

Build it step by step

  1. Write Student with __init__, properties, and __repr__.
  2. Store students in a list and print them.
  3. Add search by id and update marks.
  4. Sort by name or marks with sorted(key=...).
  5. Save to JSON and reload on start.

Sample run

ID  Name      Marks
1   Asha      92.0
2   Ravi      78.5
Sorted by marks (desc): Asha, Ravi

Stretch goals

  • dict[int, Student] for O(1) lookup by id
  • Custom StudentNotFoundError
  • Report card file per student

Interview angle: Why marks use a property with validation instead of a public attribute anyone can overwrite.

Bank Account Hierarchy 12–18 hrs

Base Account with Savings/Current derived types — deposits, withdrawals, and polymorphic statements.

Features to implement

  • Inheritance hierarchy
  • Overridden interest or display
  • Transaction history list

Concepts required

Build guide — modules, steps & sample run

Suggested modules & classes

  • Account (ABC) — account_no, holder, balance; deposit, withdraw, abstract monthly_interest()
  • SavingsAccount — Interest rate and minimum balance rule
  • CurrentAccount — Overdraft limit, no interest
  • Transaction — dataclass: type, amount, timestamp
  • Bank — Accounts by number in a dict, transfer between accounts

Build it step by step

  1. Create the abstract Account with deposit and withdraw.
  2. Override withdraw in Savings and Current to enforce their rules.
  3. Record every operation as a Transaction in a list.
  4. Print statements polymorphically for all accounts.
  5. Raise InsufficientFundsError when a rule is broken.

Sample run

SB1001 Asha  Savings  Balance: 15,000.00
CA2001 Ravi  Current  Balance: -2,000.00 (overdraft)
Transfer 5,000 SB1001 -> CA2001 ... done
Interest credited to SB1001: 50.00

Stretch goals

  • decimal.Decimal for exact money
  • PIN-protected login
  • Save accounts and transactions to JSON files

Interview angle: How overriding withdraw lets each account type enforce its own rules without if-else on type.

Library Management (OOP) 15–20 hrs

Books, members, and issue/return workflow with overdue fines.

Features to implement

  • Issue and return
  • Fine calculation
  • Search by title/author

Concepts required

Build guide — modules, steps & sample run

Suggested modules & classes

  • Book — isbn, title, author, available
  • Member — id, name, borrowed books (limit 3)
  • Loan — book, member, issue date, due date
  • Library — dict[str, Book] by ISBN; issue, return, fines

Build it step by step

  1. Model Book and Member with encapsulated attributes.
  2. Store books in a dict keyed by ISBN.
  3. Issue: check availability and the member limit, then create a Loan.
  4. Return: compute days late with datetime.date and charge a fine.
  5. Search by title or author; save everything to JSON files.

Sample run

Issue 978-0134685991 to M01 ... issued, due 2026-10-23
Return 978-0134685991 on 2026-10-26 ... 3 days late, fine Rs 15
Search author "martin": Clean Code (available)

Stretch goals

  • Reservation queue per book with collections.deque
  • Most-borrowed books report
  • Admin and member roles

Interview angle: Why a dict keyed by ISBN beats scanning a list for every lookup.

Shape Area Toolkit 8–12 hrs

Abstract Shape (ABC) with Circle/Rectangle overrides — classic polymorphism demo.

Features to implement

  • Abstract area/perimeter
  • List of Shape objects
  • Magic methods for ordering and repr

Concepts required

Build guide — modules, steps & sample run

Suggested modules & classes

  • Shape (ABC) — abstract area() and perimeter(); describe()
  • Circle, Rectangle, Triangle — Override area and perimeter; validate in __init__
  • __lt__ / __repr__ — Magic methods so shapes sort by area and print nicely
  • app.py — Builds a list of shapes and prints totals

Build it step by step

  1. Write the abstract Shape class with @abstractmethod.
  2. Implement three subclasses with constructor validation.
  3. Store mixed shapes in one list.
  4. Print each area polymorphically and the total.
  5. Sort shapes by area with sorted(shapes) using __lt__ or key=lambda.

Sample run

Circle(r=2.0)        area 12.57  perimeter 12.57
Rectangle(3.0x4.0)   area 12.00  perimeter 14.00
Triangle(3,4,5)      area  6.00  perimeter 12.00
Largest: Circle

Stretch goals

  • Square extends Rectangle — discuss why it can break expectations
  • Read shapes from a JSON file
  • Rewrite with dataclasses and typing.Protocol

Interview angle: Show dynamic dispatch: a Shape variable calling Circle.area() at runtime — and why Shape() itself cannot be created.

Employee Payroll System 12–16 hrs

Full-time and contract employees with different pay rules under one abstract base.

Features to implement

  • Polymorphic pay()
  • Class-level employee counter
  • Report printing

Concepts required

Build guide — modules, steps & sample run

Suggested modules & classes

  • Employee (ABC) — id, name; class-level counter for ids; abstract pay()
  • FullTimeEmployee — Monthly salary + allowances − tax
  • ContractEmployee — Hourly rate × hours worked
  • Payroll — List of employees, report printing

Build it step by step

  1. Define the abstract Employee with an abstract pay().
  2. Implement two employee types with their own pay rules.
  3. Generate ids with a class attribute counter or itertools.count.
  4. Print payslips sorted by pay.
  5. Show department totals with a defaultdict.

Sample run

E1 Asha  Full-time  Pay: 58,500.00
E2 Ravi  Contract   Pay: 32,000.00 (160 hrs x 200)
Total payroll: 90,500.00  Employees: 2

Stretch goals

  • Intern type with a fixed stipend
  • Payslip file per employee
  • Tax slabs loaded from a config file

Interview angle: Why adding a new employee type needs no change in Payroll (open for extension).

Word Frequency & Unique Vocab 8–12 hrs

Count word frequencies with dict/Counter and unique words with a set; optional top-N report.

Features to implement

  • Normalise case/punctuation with regex
  • Frequency map
  • Unique-word set

Concepts required

Build guide — modules, steps & sample run

Suggested modules & classes

  • text_cleaner.py — Lower-cases words and strips punctuation with re.findall
  • WordCounter — Counter for counts and a set for unique words
  • app.py — Reads a file and prints the top N

Build it step by step

  1. Read the file with Path.read_text or iterate it line by line.
  2. Find words with re.findall(r"[a-z']+", line.lower()).
  3. Count with collections.Counter (and a plain dict version first).
  4. Collect unique words in a set (and sorted(set) for ordered output).
  5. Print the top N with counter.most_common(n).

Sample run

Total words: 5,214  Unique: 1,032
Top 5: the=312  and=190  python=144  to=121  of=117

Stretch goals

  • Stop-word list loaded from a file
  • Two-word phrase (bigram) counts
  • Compare the vocabulary of two files with set operations

Interview angle: Complexity: O(n) to count, plus O(u log u) to sort the u unique words.

Expression Calculator (Stack) 10–14 hrs

Evaluate infix or postfix expressions using a stack and string parsing.

Features to implement

  • Tokenise input
  • Operator precedence or postfix eval
  • Error messages via exceptions

Concepts required

Build guide — modules, steps & sample run

Suggested modules & classes

  • tokenizer.py — Splits input into numbers, operators, and brackets with a regex
  • infix_to_postfix.py — Shunting-yard algorithm with an operator stack (a list)
  • postfix_evaluator.py — Evaluates with a value stack
  • app.py — Reads expressions until exit

Build it step by step

  1. Tokenise 3 + 4 * (2 - 1) into separate tokens.
  2. Convert infix to postfix using operator precedence.
  3. Evaluate the postfix with a list used as a stack (append / pop).
  4. Report mismatched brackets and division by zero with exceptions.
  5. Support multi-digit and decimal numbers.

Sample run

> 3 + 4 * (2 - 1)
Postfix: 3 4 2 1 - * +
Result: 7.0
> (5 + 2
Error: mismatched brackets

Stretch goals

  • Power operator with right associativity
  • Variables such as x = 5
  • Unary minus

Interview angle: Walk through how the operator stack enforces precedence — and why you should not use eval().

Task Queue + Worker Thread 10–14 hrs

Enqueue jobs on a queue and process them on a background thread with a safe hand-off.

Features to implement

  • Producer menu on the main thread
  • Worker thread consumes jobs
  • Graceful shutdown / join

Concepts required

Build guide — modules, steps & sample run

Suggested modules & classes

  • Task — dataclass: id, description, simulated duration
  • queue.Queue — Thread-safe FIFO from the standard library
  • Worker (Thread) — Takes tasks and processes them in run()
  • app.py — Menu that adds tasks and requests shutdown

Build it step by step

  1. Create Task and a shared queue.Queue.
  2. Start a worker thread that loops on queue.get().
  3. Add tasks from the main-thread menu.
  4. Stop the worker cleanly with a sentinel (None) task.
  5. join() the worker and print a summary.

Sample run

[main]   added Task#1 resize-images
[worker] started Task#1
[main]   added Task#2 send-emails
[worker] finished Task#1 in 1.2s
[main]   shutdown requested ... worker joined, 2 tasks done

Stretch goals

  • Several workers with ThreadPoolExecutor
  • Priorities with queue.PriorityQueue
  • Retry failed tasks

Interview angle: Why queue.Queue removes the need for manual locks and conditions — and what the GIL does and does not protect.

Inventory Management System 12–16 hrs

Products, stock levels, suppliers, and low-stock alerts with sorting, search, and file persistence.

Features to implement

  • Add, update, and remove products
  • Low-stock and out-of-stock report
  • Sort by name, price, or quantity

Concepts required

Build guide — modules, steps & sample run

Suggested modules & classes

  • Product — sku, name, price, quantity, reorder level
  • Supplier — id, name, contact, products supplied
  • Inventory — dict[str, Product] by SKU; stock in / out
  • report.py — Low-stock, valuation, and sorted lists with comprehensions
  • app.py — Menu and file persistence

Build it step by step

  1. Model Product with validation (no negative price or stock).
  2. Store products in a dict keyed by SKU.
  3. Implement stock in and stock out; raise OutOfStockError.
  4. Low-stock report: quantity at or below the reorder level.
  5. Sort with key=lambda and save to CSV or JSON.

Sample run

SKU    Name            Qty  Price
P101   USB Cable        4   199.00   LOW STOCK
P102   Keyboard        25   899.00
P103   Mouse            0   499.00   OUT OF STOCK
Stock value: 26,919.00

Stretch goals

  • Purchase orders generated for low-stock items
  • Sales history with daily totals
  • Barcode-style SKU validation with regex

Interview angle: How comprehensions and sum() produced the low-stock and valuation reports in a few lines.

Parking Lot System (LLD) 12–18 hrs

The classic low-level design interview problem: levels, spots by vehicle size, tickets, and fees on exit.

Features to implement

  • Spot allocation by vehicle type
  • Ticket with entry time
  • Hourly fee calculation on exit

Concepts required

Build guide — modules, steps & sample run

Suggested modules & classes

  • Vehicle (ABC) — number, size; Bike, Car, Truck subclasses
  • ParkingSpot — id, size, occupied vehicle
  • Level — Free spots per size — dict[Size, deque[ParkingSpot]]
  • Ticket — id, vehicle, spot, entry time
  • FeeStrategy (ABC) — Hourly or flat pricing
  • ParkingLot — park(), leave(), availability

Build it step by step

  1. Draw the class diagram before writing code.
  2. Allocate the nearest free spot that fits the vehicle size.
  3. Issue a ticket with the entry time from datetime.now().
  4. On exit, free the spot and compute the fee with a FeeStrategy.
  5. Show availability per level; raise ParkingFullError when the lot is full.

Sample run

Park KA01AB1234 (Car) ... Level 1, Spot C07, Ticket T1001
Park KA02CD5678 (Truck) ... Lot full for trucks
Exit T1001 after 2h 40m ... Fee Rs 60
Level 1 free: Bike 10, Car 23, Truck 2

Stretch goals

  • Multiple entry and exit gates
  • Reservations
  • Electric-charging spots

Interview angle: Justify each class and abstract base — this is exactly how LLD rounds are scored.

Capstone / Portfolio Projects

After the full roadmap · 5 projects

Larger builds that combine OOP, collections, files, and concurrency. One done well beats ten tiny demos.

Mini Console Game 20–30 hrs

Turn-based or simple grid game with entity classes, list/dict state, and save/load.

Features to implement

  • Entity hierarchy
  • Game loop
  • Save game to JSON

Concepts required

Build guide — modules, steps & sample run

Suggested modules & classes

  • Entity (ABC) — name, hp, position; abstract act()
  • Player, Enemy, Item — Subclasses with their own behaviour
  • GameMap — List-of-lists grid and movement rules
  • GameState — Entities, score, level; save / load as JSON
  • game_loop.py — Read input, update, render

Build it step by step

  1. Draw a small grid and move the player with W, A, S, D.
  2. Add enemies that move each turn and items to collect.
  3. Give every entity an act() method (polymorphism).
  4. Save and load the game state with json.dump / json.load.
  5. Add levels and a high-score table.

Sample run

#########
#P..*...#
#..E....#
#.....*.#
#########
HP: 10  Score: 20  Move (w/a/s/d): d

Stretch goals

  • Enemy path-finding with BFS and deque
  • Inventory stored in a dict
  • Colour output with ANSI codes

Interview angle: How the game loop separates input, update, and render.

Personal Finance Manager 20–28 hrs

Accounts, transactions, categories, monthly reports — strong OOP + dict/list showcase.

Features to implement

  • Multiple accounts
  • Category totals
  • Export report

Concepts required

Build guide — modules, steps & sample run

Suggested modules & classes

  • Account — name, type, balance
  • Transaction — dataclass: date, amount, category, account
  • Ledger — list of Transaction and dict of Account
  • reports.py — Monthly and category reports with defaultdict and comprehensions
  • storage.py — CSV import and export
  • app.py — Menu (package finance/)

Build it step by step

  1. Model accounts and transactions in separate modules.
  2. Record income and expenses, updating balances.
  3. Monthly report grouped by category with defaultdict(float).
  4. Budgets per category with warnings when exceeded.
  5. Export reports to CSV and import a bank statement.

Sample run

October 2026        Income 85,000   Expense 41,250
Rent      20,000  ##########
Food       8,400  ####
Travel     4,850  ##
Savings rate: 51%

Stretch goals

  • Recurring transactions
  • Password-protected data file
  • Charts with matplotlib

Interview angle: Show how defaultdict and sum() built the monthly report.

Notes CLI with Tags 18–25 hrs

Create, list, search, and tag notes stored as files with an in-memory dict/set index.

Features to implement

  • Tag search with sets
  • Full-text naive search
  • Commands via argparse and sys.argv

Concepts required

Build guide — modules, steps & sample run

Suggested modules & classes

  • Note — dataclass: id, title, body, tags, created
  • NoteStore — One file per note inside notes/ using pathlib
  • TagIndex — dict[str, set[int]] — tag to note ids
  • cli.py — Parses commands with argparse

Build it step by step

  1. Support add, list, show, and delete commands with argparse sub-commands.
  2. Save each note as a file and rebuild the index on start.
  3. Index tags in a dict of sets.
  4. Search by tag and by text.
  5. List notes by date with a simple pager (a generator that yields pages).

Sample run

$ python -m notes add "Exam prep" --tags python,oop
Saved note #12
$ python -m notes tag python
#7   Decorators cheatsheet   [python]
#12  Exam prep               [python, oop]

Stretch goals

  • Edit notes in place
  • AND search across tags (python + oop) with set intersection
  • Export all notes to Markdown

Interview angle: Why a dict of sets makes tag search fast.

Concurrent Download Simulator 16–22 hrs

Simulate several “downloads” on worker threads, track progress in a shared dict, and print a live status line.

Features to implement

  • Thread per job or a small pool
  • Lock-protected progress dict
  • Join all workers before summary

Concepts required

Build guide — modules, steps & sample run

Suggested modules & classes

  • Download — name, size, progress; run() simulates the work
  • ProgressTracker — dict of percentages guarded by threading.Lock
  • Downloader — ThreadPoolExecutor that runs the downloads
  • StatusPrinter — Prints a status line every 500 ms

Build it step by step

  1. Simulate a download with a loop and time.sleep.
  2. Run several downloads in a ThreadPoolExecutor.
  3. Update progress inside with lock: so writes never race.
  4. Print the status from a separate thread or a loop on the main thread.
  5. Wait for all futures and print a summary.

Sample run

file1.zip [##########] 100%   file2.iso [######----] 60%   file3.mp4 [###-------] 30%
...
All 3 downloads finished in 6.4s

Stretch goals

  • Pause and resume with threading.Event
  • Random failures with retry
  • Rewrite the same app with asyncio and compare

Interview angle: Why a lock guards the shared dict, and when asyncio is a better fit than threads.

Hotel Room Booking System 22–30 hrs

Rooms, customers, and bookings with date ranges, cancellations, invoices, and saved data — a complete business app.

Features to implement

  • Availability search by check-in and check-out dates
  • Double-booking prevention
  • Invoice with taxes and cancellation rules

Concepts required

Build guide — modules, steps & sample run

Suggested modules & classes

  • Room (ABC) — number, base price; Standard, Deluxe, Suite subclasses
  • Customer — id, name, phone
  • Booking — room, customer, check-in, check-out, status
  • BookingService — Availability by date range, book, cancel
  • InvoiceService — Nights × rate + taxes − discounts
  • app.py — Menu and file persistence

Build it step by step

  1. Model room types with inheritance and their own pricing.
  2. Check availability: two bookings overlap if start1 < end2 and start2 < end1.
  3. Create bookings and reject overlaps with a BookingConflictError.
  4. Cancellation rules and a printed invoice.
  5. Persist rooms, customers, and bookings in JSON files.

Sample run

Search 2026-12-24 to 2026-12-27 ... Deluxe 201, Suite 301 free
Book 201 for C12 ... Booking B5001 confirmed (3 nights)
Invoice B5001: 3 x 4,500 = 13,500 + 12% GST = 15,120.00

Stretch goals

  • Seasonal pricing
  • Room service charges on the bill
  • Occupancy report per month

Interview angle: Explain the date-overlap check and how double booking is prevented.

How to Build Any of These

StepWhat to do
1. Plan on paper List features and the functions/classes/data structures each one needs before you type a line.
2. Design types first Sketch classes and which collection owns the data. Prefer list and dict defaults; reach for dataclasses.
3. Build one feature at a time Get “add a record” working completely before “delete” or “search”.
4. Encapsulate and validate Keep attributes private by convention. Reject bad input at the edges with exceptions or clear messages.
5. Isolate with a virtual environment Create a .venv, pip install what you need, and freeze requirements.txt. Run with python -m and follow PEP 8.
6. Test edge cases Empty lists, missing files, bad input(), and concurrent access if you use threads. Automate them with pytest.
7. Close files with with-blocks Do not leak file handles. Catch exceptions such as FileNotFoundError at the boundary.
8. Write a README and push it Explain how to create the venv and run it, the features, and one screenshot of it running.

Pair this page with Day 30 of the learning plan, the cheatsheet, and interview Q&A while you build.

Project Structure & README Template

Recommended folder layout

bank-app/
├── README.md
├── requirements.txt              # pytest, etc. (pip freeze > requirements.txt)
├── pytest.ini                    # pythonpath = src
├── .gitignore                    # .venv/, __pycache__/, data/*.json
├── .venv/                        # virtual environment (never commit)
├── data/
│   └── accounts.json
├── src/
│   └── bank/
│       ├── __init__.py
│       ├── app.py                # main() + menu only
│       ├── models.py             # Account, SavingsAccount (dataclasses / ABC)
│       ├── services.py           # business rules
│       ├── repository.py         # JSON load / save with pathlib
│       └── exceptions.py         # InsufficientFundsError
└── tests/
    └── test_services.py          # pytest tests

# create the environment and run (Linux / macOS)
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
PYTHONPATH=src python -m bank.app
pytest

# create the environment and run (Windows PowerShell)
python -m venv .venv
.venv\Scripts\Activate.ps1
pip install -r requirements.txt
$env:PYTHONPATH = "src"; python -m bank.app
pytest

README.md template

# Bank Account System (Python)

Console banking app with savings and current accounts, transfers,
and statements saved to JSON.

## Features
- Create savings / current accounts
- Deposit, withdraw, transfer with validation
- Monthly interest for savings accounts
- Data saved to data/accounts.json

## Concepts used
OOP (ABC, inheritance, polymorphism), dataclasses, list and dict,
custom exceptions, pathlib, with open, pytest

## How to run
python -m venv .venv
.venv\Scripts\Activate.ps1      (Windows)   |   source .venv/bin/activate   (Linux / macOS)
pip install -r requirements.txt
PYTHONPATH=src python -m bank.app

## Run the tests
pytest

## Sample run
(paste 10-15 lines of real console output or a screenshot)

## What I learned / next steps
- Why withdraw is overridden per account type
- Next: type hints with mypy, a SQLite backend, and a FastAPI layer

Keep main() thin: it should only create objects and run the menu. Business rules go in service modules, data in model classes, and file code in repository modules — the same layering used in real FastAPI and Django applications.

Quality Checklist & Common Mistakes

What reviewers look for

AreaCheck
StructureModules by role (models, services, repository, app); one class, one job; src/ and tests/ folders
EncapsulationLeading-underscore attributes, @property with validation, no shared mutable global state
Input handlingBad input never crashes the program; clear messages and retry
ExceptionsSpecific exceptions, custom ones for business rules, no bare except: blocks
CollectionsThe right structure for the job (dict for lookups, list for order, set for uniqueness)
Fileswith open() or pathlib, explicit encoding, data survives restarts, corrupt lines handled
Namingsnake_case functions, CamelCase classes, no single-letter names outside loops (PEP 8)
ReadabilityShort functions, no duplicated code, constants instead of magic numbers, type hints and docstrings
Testingpytest tests for edge cases: empty data, zero, negatives, very large values
PresentationREADME with features, run steps, sample output; requirements.txt; clean Git history

Mistakes to avoid

MistakeFix
Everything at module levelMove logic into functions and classes; guard the entry point with if __name__ == "__main__"
Public attributes everywhereUse _private names and @property so rules are enforced in one place
Copy-pasted blocks for each optionExtract functions; use a dict dispatch or polymorphism instead of long if-elif chains on type
Crashing on letters typed instead of numbersWrap int() / float() in try/except ValueError and ask again
Mutable default argumentsUse None as the default and create the list or dict inside the function
Using float for moneyUse decimal.Decimal or store paise / cents as an int
Files left openAlways use with open(...) or Path.read_text / write_text
Bare except: or swallowing errorsCatch specific exceptions and log or re-raise them
Installing packages globallyCreate a .venv per project and keep requirements.txt up to date
Huge first versionBuild one feature end to end, then add the next
No READMERecruiters skip repositories they cannot understand in 30 seconds

Questions Interviewers Ask About Your Project

  1. Walk me through your project in two minutes — the problem, the features, and your role.
  2. Draw the main classes and explain why each one exists.
  3. Why did you choose this data structure (list, dict, set, deque) for this data?
  4. Where did you use inheritance, abstract base classes, or polymorphism, and why?
  5. How do you handle invalid input and failures such as a missing file?
  6. What was the hardest bug, and how did you find and fix it?
  7. What is the time complexity of your search, add, and delete operations?
  8. If 1,000 users used it at once, what would break and how would you fix it?
  9. How would you test it with pytest? Which cases would you automate first?
  10. What would you add or change if you had another week?

Prepare a two-minute explanation and a class diagram for every project on your resume. Each build guide above ends with the interview angle most likely to come up for that project.

Level Up a Finished Project

Once a console version works, upgrade the same project instead of starting a new one — it shows growth and turns a student exercise into a portfolio piece.

UpgradeLearnExample
Unit testspytest, fixtures, and parametrizeTest BankService.withdraw for overdraft and insufficient-balance rules
Packagingpyproject.toml and pip install -e .Install your app as a command and manage dependencies properly
Databasesqlite3, then SQLAlchemy with PostgreSQLReplace JSON files with tables and SQL queries
Desktop GUITkinter or PyQtForms and tables instead of a console menu
REST APIFastAPI or FlaskExpose accounts as /api/accounts endpoints for a web or mobile app
Logging and typinglogging module and mypyReplace print debugging with log levels and add type hints
Version controlGit and GitHubSmall commits with clear messages and a public repository