Python Runtime — Junior¶
Python runs your source as objects and function calls. Start with predictable code before chasing internals.
- Use a virtual environment and record dependencies.
- Know mutability: lists and dicts can change; integers and strings cannot.
- Avoid mutable default arguments; use
Noneand create the list inside. - Use
is None, not== None.
Run python -m pytest and reproduce surprising behavior in a tiny script before changing production code.