Sector file // python
PYTHONDECODED.
Idioms, data & internals
Easy
34 questionsWhat are common useful string methods?
DSA · 1.1k views · string-methods
What 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
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
Medium
74 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 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
Hard
20 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
How does the Python import system work?
DSA · 902 views · import, modules
What is a metaclass?
DSA · 902 views · metaclass
How does typing.Never enable exhaustive match checking?
DSA · 895 views · typing, never, match
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 CPython execute your code?
DSA · 720 views · cpython, internals, bytecode
Seen a Python question that is not here? Add it and help the next candidate.
Share a question