- 16 more key points in Pro version
- 7 more common mistakes in Pro version
- 3 more exam tips in Pro version
- 21 more related questions in Pro version
Summary
Know exactly what an import binds, how Python resolves module names, and the PCAP-specific standard-library calls in `math`, `random`, and `platform`. Be able to reason about `__name__`, `__all__`, leading underscores, `__pycache__`, conventional packages, and search-path shadowing.
Key Points
- `import module` binds the module; `from module import name` binds the imported object directly.
Common Mistakes
- Treating `ceil()` as 'away from zero' for negative numbers.
Exam Tips
- For imports, write down the exact name that appears in the current namespace.