Skip to main content

Practice ยท 1 of 2

Script or Module?

Implement run_report() returning the string 'report'. Then implement the module-level pattern: a variable RAN_DIRECTLY set by the __main__ guard. Because the sandbox imports your code as a module, RAN_DIRECTLY must be False here โ€” and run_report() must not print.

Difficulty: intermediate

Back to lesson: Practice: Import Discipline