Quiz · 3 questions
🔷 Typing — Annotations That Help You Think
type hints / TypedDict / Pydantic / generics / 3.12 type
Level 0Curious
0 XP0/93 lessons0/23 achievements
0/100 XP to next level100 XP to go0% complete
Quiz
01What does Python do with type hints at runtime?
Hint
Static vs runtime — which one does the work?
02When should you use
Literal["r", "w", "a"] over plain str?Hint
What's the difference between 'a string' and 'one of these specific strings'?
03What does Pydantic do that Python's built-in type hints don't?
Hint
Static checks happen before runtime; what does Pydantic do at runtime?
Comments 0
🔔 Reply notifications (sign in)Sign in — Please sign in to comment.
No comments yet — be the first.