Module 1

Python Foundations

15 labs + 2 capstones
D1
Seconds in a Week
Calculate exactly how many seconds fit in a week using variables and arithmetic operators.
D4
Greeter + Tip Calculator
Write functions that greet a user by name and compute the tip on a restaurant bill.
D5
About Me
Create a Python program that displays a formatted personal introduction using variables and print().
D6
Grade Classifier + Leap Year
Classify a numeric score into a letter grade using if/elif/else, then check if a year is a leap year.
D7
Sum 1..N + Times Tables
Use for loops to compute the sum of 1 to N and print a formatted multiplication table.
D8
Find First Match
Loop through a list and return the first element that matches a given condition, using break.
D9
Patterns + Prime Check
Print star/number patterns using nested loops, and write a function to check if a number is prime.
D10
Number Guessing Game
Build an interactive guessing game with "too high / too low" hints and a limited number of tries.
D11
Refactor into Functions
Take a working but monolithic script and split it into well-named, single-purpose functions.
D12
Geometry Helpers
Write functions to compute area and perimeter for circles, rectangles, and triangles.
D13
Scope Bug-Hunt: The Broken Shopping Cart
Diagnose and fix scope-related bugs in a broken shopping cart program — global vs local variable errors.
D14
Refactor: Spaghetti → Clean
Rewrite messy procedural spaghetti code into clean, modular, readable Python with proper functions.
D15
Simple Calculator
Build a command-line calculator that handles +, −, ×, ÷ with input validation and a clean menu.
CP
Capstone
Grade Buddy
Full 4-part capstone: input marks, compute averages, classify grades, and generate a formatted report card — built in stages across 4 checkpoints.
CP
Capstone
GitHub Profile — Mini Capstone
Build a Python script that prints a formatted, GitHub-style profile page using variables, strings, and functions.