Sector file // python
PYTHONDECODED.
Idioms, data & internals
Easy
15 questionsWhat are mutable and immutable types in Python?
DSA ยท 1.1k views ยท mutability
How 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
How does iterable unpacking work?
DSA ยท 1.0k views ยท unpacking
What do *args and **kwargs mean?
DSA ยท 743 views ยท args, kwargs
How are Python dictionaries implemented and ordered?
DSA ยท 724 views ยท dict, data-structures
How do you read TOML with tomllib in Python 3.11+?
Backend ยท 715 views ยท tomllib, config, python3.11
What is the difference between a list and a tuple?
DSA ยท 549 views ยท python, basics
Medium
26 questionsWhat is the difference between shallow and deep copy?
DSA ยท 1.2k views ยท shallow-deep-copy
What is structural pattern matching (match/case)?
DSA ยท 1.1k views ยท match, pattern-matching
How does Pydantic v2 validation work (BaseModel, field_validator, mode)?
Backend ยท 1.1k views ยท pydantic, validation, python3.11
How does the logging module work?
Backend ยท 1.0k views ยท logging, stdlib
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
What useful types does the collections module provide?
DSA ยท 964 views ยท collections
Hard
8 questionsHow do TypeAdapter, strict mode, and computed fields work in Pydantic v2?
Backend ยท 763 views ยท pydantic, typeadapter, strict
What is a weak reference in Python?
DSA ยท 729 views ยท weakref, memory
How does multiprocessing share data between processes?
DSA ยท 691 views ยท multiprocessing, ipc
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
How do Unpack and TypedDict enable type-safe **kwargs?
Backend ยท 170 views ยท typing, unpack, typeddict
What is Python 3.12's free-threaded (no-GIL) build and what changes?
Backend ยท 94 views ยท gil, free-threaded, python3.12
Seen a Python question that is not here? Add it and help the next candidate.
Share a question