modules, imports, and why your venv hates you7 / 8
imports, pip, and the venv that can't see your package
Claude wrote this and it crashes with NameError: name 'sqrt' is not defined.
The math module is imported fine on line 1, but line 3 calls sqrt(25)
without saying which module it came from.
Fix line 3 so the script prints 5.0.
The break is on line 3 — but read the whole snippet first.
⌘↵ runs the editor.
Booting Python…
Output
[promptdojo:~]$ _