// 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
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.