modules, imports, and why your venv hates you8 / 8
imports, pip, and the venv that can't see your package
Checkpoint
One last thing before we move on. Same surface as a write step — but the lesson doesn't complete until this passes.
One last thing. The starter script is supposed to use pi from the math
module to compute the area of a circle with radius 5. The import line and
the math line are both missing.
Finish lines 1 and 4 so the script prints area: 78.53981633974483.
Use from math import pi so you can write just pi without the math. prefix.
⌘↵ runs the editor.
Booting Python…
Output
[promptdojo:~]$ _