Themed sets of Python questions. Add the ones you want and each comes back right before you’d forget it.
How it works →
On this page
Learning with Daily Recall
1 pack · 13 questions
How Daily Recall WorksHow Daily Recall decides when you'll see a question again, what to do when you typo or meet something you haven't learned yet, why new questions sometimes pause, and what happens to your progress when you take a break or remove a pack.13 questionsPreviewSign up free
Core Python
9 packs · 152 questions
Built-in FunctionsThe built-in functions every Pythonista should commit to memory: the commonly known ones, the ones overlooked by new Pythonistas, and the built-in debugging tools. Covers recall, gotchas, and synthesis patterns.31 questionsPreviewSign up free
Looping HelpersThe built-in functions that replace index arithmetic in for loops: range, enumerate, zip, and reversed. Their argument forms and their keyword arguments.13 questionsPreviewSign up free
Iterable UnpackingTuple unpacking, extended unpacking with *, unpacking into function calls and literals, and functions that accept any number of arguments with *args and **kwargs21 questionsPreviewSign up free
Time ComplexityHow code slows as data grows: what Big O means in practice, which everyday Python operations are fast or slow, and the loop mistakes that turn O(n) code into O(n²)15 questionsPreviewSign up free
ComprehensionsReading and writing list, set, and dictionary comprehensions, turning loops into comprehensions, nested and multi-loop comprehensions, when a comprehension is the wrong tool, and generator expressions18 questionsPreviewSign up free
The Python REPLGetting more out of Python's interactive interpreter: the _ variable, what the 3.13+ REPL added, its most useful keyboard shortcuts, help, dir, and vars for exploring objects, and python -i and PYTHONSTARTUP.14 questionsPreviewSign up free
Python TerminologyNewThe words Python programmers use: iterable, iterator, and sequence; callable; expression versus statement; mutable and hashable; scope and LEGB; EAFP and LBYL.12 questionsPreviewSign up free
Scope and Closures PremiumWhy assigning inside a function doesn't change a module-level variable, the global and nonlocal statements, closures and the enclosing scope, LEGB lookup order, and which constructs create a scope of their own12 questionsPreviewGet All Access
Sets PremiumWhat a set gives up and what it's good for, the |, &, -, ^, and <= operators, the methods that accept any iterable, add, update, remove, and discard, and frozenset for nesting.16 questionsPreviewGet All Access
Strings and Text
3 packs · 44 questions
String MethodsThe must-know string methods, including split, join, strip, replace, casefold, startswith/endswith, splitlines, format, count, removeprefix, and removesuffix. Covers common gotchas with strip vs removesuffix and split with and without a separator.26 questionsPreviewSign up free
F-string BasicsWriting f-strings and knowing what goes inside the braces: interpolating expressions, escaping braces, the = debugging syntax, the !r conversion, and the existence of format specs.7 questionsPreviewSign up free
F-string Format SpecsThe format-spec mini-language inside f-strings: decimal precision, percentages, thousands separators, field width, alignment and fill, and zero-padding.11 questionsPreviewSign up free
Dates and Times
3 packs · 21 questions
Date Parsing and FormattingParsing a date string with strptime and formatting a datetime with strftime or an f-string: which method goes which way, the everyday format codes (%Y, %m, %d, %H, %M, %S, and two-digit %y), and when an ISO 8601 string needs no format string at all.7 questionsPreviewSign up free
datetime Format CodesThe strftime and strptime format codes: year, month, day, and time of day, then month and weekday names, 12-hour clocks with AM/PM, and UTC offsets.8 questionsPreviewSign up free
datetime ArithmeticMoments versus amounts of time: what subtracting, shifting, and dividing datetime and timedelta objects gives you, which combinations work, and why timedelta has no months.6 questionsPreviewSign up free
Files and Paths
2 packs · 30 questions
pathlib PathsBuilding paths with pathlib and taking them apart: joining, the current and home directories, the pieces of a filename, swapping extensions, absolute and relative paths, and the directory a script lives in.16 questionsPreviewSign up free
pathlib Files and Directories PremiumOpening, reading, and writing whole files, finding files by pattern, listing a directory, getting a file's size, making directories, and moving and deleting files, all with pathlib.14 questionsPreviewGet All Access
Dictionaries and Mappings
1 pack · 18 questions
DictionariesCore dictionary skills: looping, handling missing keys, adding and removing entries, merging, and which values can be keys.18 questionsPreviewSign up free
Classes and Objects
8 packs · 79 questions
ClassesMaking and using your own classes: __init__, self, methods and attributes, and the __repr__ and __eq__ methods that make a class friendly.20 questionsPreviewSign up free
DataclassesThe @dataclass decorator: what it generates, frozen, orderable, keyword-only, and slotted dataclasses, mutable field defaults, fields that __init__ or == ignore, __post_init__, astuple, asdict, and replace.14 questionsPreviewSign up free
Inheritance PremiumInheriting from a class: the syntax, inherited methods, super() for extending a parent's method instead of replacing it, what happens when a parent class calls a method the child overrides, and the method resolution order.9 questionsPreviewGet All Access
Attributes PremiumWhat happens when you write obj.x: instance and class attributes, the mutable class attribute trap, __dict__, getattr and setattr for names stored in strings, and __slots__.10 questionsPreviewGet All Access
Properties PremiumThe property decorator: making a method read like an attribute, read-only attributes and the underscore convention behind them, adding a setter, and cached_property for a value that is computed once.6 questionsPreviewGet All Access
Class Methods and Static Methods PremiumThe classmethod decorator for alternate constructors, why a class method builds cls(...) rather than naming the class, and the staticmethod decorator for a function that happens to live on a class.5 questionsPreviewGet All Access
Customizing Attribute Access PremiumThe dunder methods behind obj.x: __setattr__ for every assignment and object.__setattr__ to get around your own, __getattr__ for missing attributes versus __getattribute__ for every lookup (asked both ways), and how to avoid recursion inside them.6 questionsPreviewGet All Access
Container Dunder MethodsNew PremiumMaking len(), square brackets, the in operator, and for loops work on your own class: __len__, __getitem__, __setitem__, __delitem__, __contains__, and what you get for free.9 questionsPreviewGet All Access
Debugging with pdb PremiumLaunching the Python debugger with breakpoint() and the pdb commands worth learning first: moving through code, looking at values, dropping into a REPL, setting breakpoints, and debugging a crash after the fact.13 questionsPreviewGet All Access
pytest
11 packs · 71 questions
pytest BasicsHow pytest finds your tests, what a test looks like, and how to read a failure9 questionsPreviewSign up free
pytest Command LineRunning the tests you want and getting the output you need from pytest's command line8 questionsPreviewSign up free
unittest to pytestTranslating an existing unittest suite to pytest: assertions, exceptions, setUp, and what runs unchanged5 questionsPreviewSign up free
Testing Exceptions PremiumAsserting that code raises the right exception with pytest.raises, and matching the error message6 questionsPreviewGet All Access
pytest Fixtures PremiumWriting and requesting fixtures: the decorator, yield teardown, conftest.py sharing, and scopes7 questionsPreviewGet All Access
Parametrized Tests PremiumRunning one test function against many data sets with pytest.mark.parametrize6 questionsPreviewGet All Access
pytest Failure Triage PremiumWorking through a failing run: quieting the output, surfacing the details you need, and iterating to green6 questionsPreviewGet All Access
pytest Assertion Extras PremiumAssertion tools beyond plain assert and pytest.raises: approx, warns, fail, skip, and the test that cannot fail7 questionsPreviewGet All Access
pytest Marks PremiumMarking tests with pytest.mark: expected failures, conditional skips, custom marks, and marks that drive fixtures6 questionsPreviewGet All Access
pytest Output Capture PremiumTesting code that prints or logs: the capsys fixture, readouterr, caplog for log messages, and capfd for output that capsys can't see5 questionsPreviewGet All Access
pytest Files and Env PremiumControlling what a test finds on disk and in the environment: the tmp_path fixture, where its directories live after a run, and monkeypatch's setenv and delenv6 questionsPreviewGet All Access
What's New in Python
4 packs · 59 questions
Python 3.11New features and changes in Python 3.1110 questionsPreviewSign up free
Python 3.13New features and changes in Python 3.1316 questionsPreviewSign up free
Python 3.14New features and changes in Python 3.1418 questionsPreviewSign up free
Python 3.15New features and changes in Python 3.1515 questionsPreviewSign up free
No packs match that.
Start practicing today
A free account gets you Daily Recall and the free packs above.