Sector file // python
PYTHONDECODED.
Idioms, data & internals
139 Questions88.6k Views5.3k Upvotes
34 easy83 med22 hard
Easy
2 questionsMedium
8 questionsWhat are abstract base classes and Protocols?
DSA Β· 925 views Β· abc, protocol
Views:925Likes:13
What is the difference between class variables and instance variables?
DSA Β· 386 views Β· oop, class-vars
Views:386Likes:28
What are generics and TypeVar in Python?
DSA Β· 368 views Β· typing, generics
Views:368Likes:22
How do you enforce match/case exhaustiveness in Python?
DSA Β· 357 views Β· match, exhaustiveness
Views:357Likes:28
What is Python 3.12's new type parameter syntax (type, generic classes)?
DSA Β· 292 views Β· typing, generics, python3.12
Views:292Likes:21
What does typing.Self do and why does it beat TypeVar for methods?
DSA Β· 123 views Β· typing, self, python3.11
Views:123Likes:55
What is EAFP vs LBYL in Python?
DSA Β· 94 views Β· eafp, lbyl
Views:94Likes:20
How do type hints work in Python?
DSA Β· 43 views Β· typing
Views:43Likes:19
Hard
3 questionsHow does typing.Never enable exhaustive match checking?
DSA Β· 896 views Β· typing, never, match
Views:896Likes:24
What is TypeVarTuple and Unpack for variadic generics?
DSA Β· 584 views Β· typing, typevartuple, generics
Views:584Likes:62
How do Unpack and TypedDict enable type-safe **kwargs?
Backend Β· 174 views Β· typing, unpack, typeddict
Views:174Likes:29
Seen a Python question that is not here? Add it and help the next candidate.
Share a question