Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Well done!

You have completed (UPI) Chapter 10: Mastering Python Modules!

Instruction

Side Effects

Modules define functions and constants to be used in other programs. When importing a module, all code in the module is run from top to bottom. If a module is not designed carefully, unintended code might run as a side effect. The unintended code is generally at the top level, outside of function definitions.

Checkpoint: Sphere Test Code

<iframe src="https://drive.google.com/file/d/1F...