Sector file // python
PYTHONDECODED.
Idioms, data & internals
Easy
18 questionsWhat are common useful string methods?
DSA ยท 1.1k views ยท string-methods
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
Why use virtual environments?
DSA ยท 1.1k views ยท venv, pip
What is the enum module and when should you use it?
Backend ยท 985 views ยท enum, stdlib
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 do you read TOML with tomllib in Python 3.11+?
Backend ยท 715 views ยท tomllib, config, python3.11
Medium
27 questionsHow do uv workspaces and named dependency groups work?
Backend ยท 1.2k views ยท uv, workspaces, monorepo
What are dunder (magic) methods?
DSA ยท 1.1k views ยท oop, dunder
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
How do you measure and profile Python performance?
Backend ยท 895 views ยท performance, timeit, cprofile
Hard
8 questionsWhat is a metaclass?
DSA ยท 902 views ยท metaclass
How does the Python import system work?
DSA ยท 902 views ยท import, modules
What is a weak reference in Python?
DSA ยท 729 views ยท weakref, memory
How does the asyncio event loop schedule coroutines?
DSA ยท 465 views ยท asyncio, event-loop
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 __init_subclass__ in Python?
DSA ยท 223 views ยท oop, init-subclass
How do Unpack and TypedDict enable type-safe **kwargs?
Backend ยท 170 views ยท typing, unpack, typeddict
Seen a Python question that is not here? Add it and help the next candidate.
Share a question