Sector file // python
PYTHONDECODED.
Idioms, data & internals
Easy
25 questionsWhat is the difference between '==' and 'is'?
DSA ยท 1.1k views ยท is, equality
How 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
Why use virtual environments?
DSA ยท 1.1k views ยท venv, pip
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
What is the enum module and when should you use it?
Backend ยท 989 views ยท enum, stdlib
What is the difference between a module and a package?
DSA ยท 942 views ยท modules, packages
Medium
58 questionsWhat is a race condition and how do locks prevent it?
DSA ยท 1.2k views ยท threading, race-condition, locks
What is the difference between shallow and deep copy?
DSA ยท 1.2k views ยท shallow-deep-copy
What are mixins in Python?
DSA ยท 1.2k views ยท oop, mixins
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
What are dunder (magic) methods?
DSA ยท 1.1k views ยท oop, dunder
What do the global and nonlocal keywords do?
DSA ยท 1.1k views ยท global, nonlocal
What is structural pattern matching (match/case)?
DSA ยท 1.1k views ยท match, pattern-matching
Hard
17 questionsHow does Python manage memory and garbage collection?
DSA ยท 1.1k views ยท memory, gc
What is an async iterator and async for?
DSA ยท 956 views ยท async, async-iterator
How does the Python import system work?
DSA ยท 905 views ยท import, modules
What is a metaclass?
DSA ยท 904 views ยท metaclass
How does typing.Never enable exhaustive match checking?
DSA ยท 896 views ยท typing, never, match
How does TaskGroup handle cancellation and ExceptionGroup?
Backend ยท 854 views ยท asyncio, exceptiongroup, cancellation
How 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
Seen a Python question that is not here? Add it and help the next candidate.
Share a question