| Question | Resource 1 (site + date) | Resource 2 (site + date) | Why these two (rationale) |
|---|---|---|---|
| 1. Benefits of Python |
Python FAQ “What is Python good for?” (python.org, unspecified) Python Tutorial “Whetting Your Appetite” (python.org, unspecified) |
Official stance on Python’s strengths; tutorial intro emphasizes readability and applications. | — |
| 2. List vs Tuple | Python Tutorial “Tuples and Sequences” (python.org, updated 2025) | Built In “Python Tuples vs. Lists” (builtin.com, unspecified) | Official definition of mutability; tutorial compares performance/usage. |
| 3. PEP 8 (coding style) | PEP 8 – Style Guide (python.org, 2001/Active) | Real Python “How to Write Beautiful Code With PEP 8” (realpython.com, unspecified) | PEP 8 is the authoritative style guide; RealPython explains why following it matters. |
| 4. Python memory management | Python Docs “Memory Management” (python.org, current) | Honeybadger Blog “Memory Management in Python” (honeybadger.io, Jun 30, 2022) | Official technical overview of CPython heap; Honeybadger gives accessible explanation of GC, refcount, allocators. |
| 5. Decorators | PEP 318 – Decorators (peps.python.org, 2004) | Real Python “Primer on Python Decorators” (realpython.com, unspecified) | PEP 318 is the design spec for decorators; RealPython clearly shows how decorators wrap functions with examples. |
| 6. Comprehensions (list, dict) | Python Tutorial “List Comprehensions” (python.org, current) | Real Python “When to Use a List Comprehension” (realpython.com, unspecified) | Official examples of comprehension syntax; RealPython covers use cases, readability, and performance tradeoffs. |
| 7. Exception handling | Python Tutorial “Handling Exceptions” (python.org, current) | Real Python “Python Exceptions: An Introduction” (realpython.com, unspecified) | Official guide to try/except; RealPython provides context, best practices (e.g. using else/finally). |
| 8. *args & **kwargs | Python Tutorial “Arbitrary Argument Lists” (python.org, current) | Real Python “args and kwargs: Demystified” (realpython.com, unspecified) | Official syntax and example (cheeseshop function); RealPython explains use of args/kwargs for flexible functions. |
| 9. Global Interpreter Lock (GIL) | Python Wiki “GlobalInterpreterLock” (python.org, archived) | Real Python “What Is the Python GIL?” (realpython.com, 2023) | Wiki defines GIL’s role in thread-safety; RealPython gives modern explanation of its effect on multithreading. |
| 10. Virtual envs and dependencies (venv, pip) | Python Tutorial “Virtual Environments and Packages” (python.org, current) | Real Python “Python Virtual Environments: A Primer” (realpython.com, 2022) | Official overview of creating/using venv and pip; RealPython offers detailed guide on venv creation, activation, and management. |
Comments
Post a Comment