// resources
Resources
All
|
Cheatsheet
Code Example
Exercise
Template
Other
Achievement
|
Basics
Control Flow
Functions
Data Structures
Modules & Packages
Projects
Object-oriented programming
|
↑ oldest first
↓ newest first
// Exercise
attendance_tracker.py
Mark students present one by one. Enrolled set, present set, absent via set difference. add(), in, and one line that do…
// Exercise
even_numbers_2.py
Even Numbers upgraded — get_even() rewritten as a list comprehension. Four lines became one. Same result, less code.
// Exercise
daily_notes.py
Daily Notes — write a note, save it with a timestamp, append forever. Run it tomorrow and everything's still there.
// Exercise
shopping_list_3.py
Shopping List v3 — the list now survives. Saves to CSV on quit, loads on start. Run it tomorrow and everything's still …
// Exercise
squad_utils.py
The shared module. Three functions — format_name, is_active, squad_summary. Written once, imported by everything else.
// Exercise
briefing.py
Imports format_name and is_active from squad_utils. Prints a clean roster with status for each member.
// Exercise
report.py
Imports squad_summary from squad_utils. Prints total, active, and inactive count in three lines.
// Exercise
calories_tracker_r3.py
Calories Tracker — Round 3. Complete working file: add food with validation, filter last 7 days, display results. First…
// Exercise
calories_tracker_r4.py
Calories Tracker — Round 4. Discipline analysis added: daily calorie sums, personal target comparison, sorted output. T…
// Exercise
calories_tracker_r5.py
Calories Tracker — Round 5. General report added: grouped by day, filtered by period, sorted by date and time. Three re…
// Exercise
calories_tracker_r6.py
Calories Tracker — Round 6. Persistence added: writes to food_log.txt on every entry, loads from file at start and afte…
// Exercise
calories_tracker.py
Calories Tracker — final version. Input validation, three reports, persistence, file export. Place in a dedicated folde…
// Exercise
safe_paws_r3.py
Safe Paws — Round 3. Add animals, search by species, size and age, edit health status. Persistence in safe_paws.txt. Ru…
// Exercise
safe_paws_r4.py
Safe Paws — Round 4. Add, search, edit health, register adoption. Two files in sync. Run with both dummy files to test …
// Exercise
safe_paws.py
Safe Paws. Complete shelter management: add, search, edit, adopt, activity report. Two files, two dictionaries, one for…