// resources

Resources

// Code Example
utils.py
Your first custom module. Three functions, one guard. Place it in the same folder as main.py and import away.
40 downloads 08 May 2026 → What If I Could Make My Own Module?
[ download ]
// Code Example
main.py
Imports from utils.py — both patterns side by side. Run this after utils.py is in the same folder.
35 downloads 08 May 2026 → What If I Could Make My Own Module?
[ download ]
// Exercise
squad_utils.py
The shared module. Three functions — format_name, is_active, squad_summary. Written once, imported by everything else.
[ download ]
// Exercise
briefing.py
Imports format_name and is_active from squad_utils. Prints a clean roster with status for each member.
[ download ]
// Exercise
report.py
Imports squad_summary from squad_utils. Prints total, active, and inactive count in three lines.
[ download ]
// Cheatsheet
Modules — The Full Picture
Everything you've learned about modules — in one place. random, math, datetime, statistics, time, collections, string, …
36 downloads 08 May 2026 → Modules — The Full Picture
[ download ]
// Exercise
calories_tracker_r3.py
Calories Tracker — Round 3. Complete working file: add food with validation, filter last 7 days, display results. First…
[ download ]
// Exercise
calories_tracker_r4.py
Calories Tracker — Round 4. Discipline analysis added: daily calorie sums, personal target comparison, sorted output. T…
[ download ]
// 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…
[ download ]
// 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…
[ download ]
// Exercise
calories_tracker.py
Calories Tracker — final version. Input validation, three reports, persistence, file export. Place in a dedicated folde…
[ download ]
// Other
food_log.txt
Dummy data for testing — 7 days, 35 entries. Use it to test all three reports. Delete it when done. Your real logbook s…
[ download ]
// 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…
30 downloads 12 May 2026 → Safe Paws Project — Round 3/5
[ download ]
// Other
safe_paws.txt
Dummy data for testing — 15 animals, mix of species, sizes and health status. 3 already adopted. Delete when done.
33 downloads 12 May 2026 → Safe Paws Project — Round 3/5
[ download ]
// 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 …
36 downloads 12 May 2026 → Safe Paws Project — Round 4/5
[ download ]