Sector file // python
PYTHONDECODED.
Idioms, data & internals
Easy
5 questionsHow do you work with dictionaries (get, setdefault, items, merging)?
Backend ยท 1.1k views ยท dict, basics
How does slicing with start:stop:step work?
DSA ยท 1.1k views ยท slicing, sequences
What does if __name__ == "__main__" do?
Backend ยท 860 views ยท modules, basics
How are Python dictionaries implemented and ordered?
DSA ยท 724 views ยท dict, data-structures
How does exception handling work in Python?
DSA ยท 87 views ยท exceptions
Medium
12 questionsHow does Pydantic v2 validation work (BaseModel, field_validator, mode)?
Backend ยท 1.1k views ยท pydantic, validation, python3.11
What is the @property decorator?
DSA ยท 1.0k views ยท property
Why is using a mutable default argument dangerous?
DSA ยท 1.0k views ยท mutable-default
What is composition versus inheritance?
DSA ยท 1.0k views ยท oop, composition
Polars vs pandas: when should you switch in 2025-26?
Backend ยท 980 views ยท polars, pandas, dataframe
How does heapq work in Python?
DSA ยท 851 views ยท heapq, data-structures
How does a + b dispatch in Python?
DSA ยท 826 views ยท operators, data-model
How does yield from delegation work?
DSA ยท 707 views ยท generators, yield-from
Hard
7 questionsHow does Python manage memory and garbage collection?
DSA ยท 1.1k views ยท memory, gc
How do TypeAdapter, strict mode, and computed fields work in Pydantic v2?
Backend ยท 763 views ยท pydantic, typeadapter, strict
How does the asyncio event loop schedule coroutines?
DSA ยท 465 views ยท asyncio, event-loop
What is the difference between __getattr__ and __getattribute__?
DSA ยท 407 views ยท attributes, dunder
How does attribute lookup work on a Python object?
DSA ยท 402 views ยท attributes, lookup
What is the descriptor protocol?
DSA ยท 340 views ยท descriptors, data-model
What is the difference between del, __del__, and garbage collection?
DSA ยท 218 views ยท gc, del
Seen a Python question that is not here? Add it and help the next candidate.
Share a question