Sector file // python
PYTHONDECODED.
Idioms, data & internals
Easy
15 questionsHow do you work with dictionaries (get, setdefault, items, merging)?
Backend ยท 1.1k views ยท dict, basics
What are mutable and immutable types in Python?
DSA ยท 1.1k views ยท mutability
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 ยท 746 views ยท args, kwargs
How are Python dictionaries implemented and ordered?
DSA ยท 726 views ยท dict, data-structures
How do you read TOML with tomllib in Python 3.11+?
Backend ยท 719 views ยท tomllib, config, python3.11
What is the difference between a list and a tuple?
DSA ยท 551 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 ยท 966 views ยท collections
Hard
8 questionsHow do TypeAdapter, strict mode, and computed fields work in Pydantic v2?
Backend ยท 765 views ยท pydantic, typeadapter, strict
What is a weak reference in Python?
DSA ยท 731 views ยท weakref, memory
How does multiprocessing share data between processes?
DSA ยท 693 views ยท multiprocessing, ipc
What is the difference between __getattr__ and __getattribute__?
DSA ยท 409 views ยท attributes, dunder
How does attribute lookup work on a Python object?
DSA ยท 404 views ยท attributes, lookup
What is the descriptor protocol?
DSA ยท 342 views ยท descriptors, data-model
How do Unpack and TypedDict enable type-safe **kwargs?
Backend ยท 174 views ยท typing, unpack, typeddict
What is Python 3.12's free-threaded (no-GIL) build and what changes?
Backend ยท 99 views ยท gil, free-threaded, python3.12
Seen a Python question that is not here? Add it and help the next candidate.
Share a question