SproutStackSproutStack home
Section checkpoint

Python for AI

9 questions drawn from the 3 chapters in this section. If most land on the first try, you are ready for the next section. If not, the explanation after each answer says which idea to revisit.

Checkpoint

9 questions · first-try answers earn the most XP

1. Why is reading a traceback calmly a listed skill rather than an afterthought?
2. Where should an API key live in a Python project?
3. What does pinning dependencies with a requirements file protect you from?
4. Why validate an API response with a schema before using it?
5. Why should every outbound HTTP call from your app set a timeout?
6. Where should an API key travel in an outbound request, and where should it never go?
7. What happens if you call a blocking `time.sleep` inside an `async def`?
8. Why would you reach for threads instead of async?
9. What is `asyncio.gather` used for when fanning out many async calls?

What this checkpoint covers

Next section: How LLMs Work (Visual First)