Sector file // python
PYTHONDECODED.
Idioms, data & internals
Easy
18 questionsWhat is the difference between '==' and 'is'?
DSA ยท 1.1k views ยท is, equality
What 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
What is the difference between append, extend and insert on a list?
Backend ยท 1.1k views ยท lists, basics
How does iterable unpacking work?
DSA ยท 1.0k views ยท unpacking
How do you read TOML with tomllib in Python 3.11+?
Backend ยท 715 views ยท tomllib, config, python3.11
Is Python pass-by-value or pass-by-reference?
Backend ยท 586 views ยท functions, objects
Medium
42 questionsWhat is the difference between shallow and deep copy?
DSA ยท 1.2k views ยท shallow-deep-copy
How do uv workspaces and named dependency groups work?
Backend ยท 1.2k views ยท uv, workspaces, monorepo
What is the difference between an iterable and an iterator?
DSA ยท 1.1k views ยท iterators
How does Pydantic v2 validation work (BaseModel, field_validator, mode)?
Backend ยท 1.1k views ยท pydantic, validation, python3.11
How does Polars LazyFrame query optimization work?
DSA ยท 1.1k views ยท polars, lazy, performance
How does collections.deque work internally?
DSA ยท 1.0k views ยท deque, data-structures
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
Hard
7 questionsWhat is an async iterator and async for?
DSA ยท 954 views ยท async, async-iterator
How 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 Method Resolution Order (MRO)?
DSA ยท 684 views ยท mro, inheritance
What is TypeVarTuple and Unpack for variadic generics?
DSA ยท 579 views ยท typing, typevartuple, generics
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