Sector file // python
PYTHONDECODED.
Idioms, data & internals
Easy
25 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
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 ยท 985 views ยท enum, stdlib
What is the difference between a module and a package?
DSA ยท 939 views ยท modules, packages
Medium
58 questionsWhat is the difference between shallow and deep copy?
DSA ยท 1.2k views ยท shallow-deep-copy
What is a race condition and how do locks prevent it?
DSA ยท 1.2k views ยท threading, race-condition, locks
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 ยท 954 views ยท async, async-iterator
What is a metaclass?
DSA ยท 902 views ยท metaclass
How does the Python import system work?
DSA ยท 902 views ยท import, modules
How does typing.Never enable exhaustive match checking?
DSA ยท 895 views ยท typing, never, match
How does TaskGroup handle cancellation and ExceptionGroup?
Backend ยท 852 views ยท asyncio, exceptiongroup, cancellation
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
Seen a Python question that is not here? Add it and help the next candidate.
Share a question