๐น๏ธ Practice arcade
Extra games, not extra homework โ timed sprints, survival runs that end when your lives run out, and mastery drills built from the same skills Python teaches.
โก Sprints
Beat the clock.
โ Operator Sprint
Floor division with negatives, / against //, int() against round(), float sums and precedence. Two minutes, as many as you can.
๐ค Strings Sprint
Slices that stop early, replace and find, split with empty fields, f-string formats. Two minutes of text.
๐ Bug-Hunt Time Trial
Two minutes. Each function has one bad line: a range one short, count = 1, sort() that returns None, a missing dict key. Find it.
๐งฎ Sort and Comprehend
Stable sorts with a key, capitals before lowercase, zip that stops early, and comprehensions with a filter. Two minutes.
๐ Status Code Sprint
200, 301, 404, 503: read the first digit and say whose problem it is. Sixty seconds.
๐ Survival
Each miss costs a life โ lose them all and the run ends.
โ๏ธ Truthy or Falsy
bool("False"), what `or` really returns, and which branch of an if/elif chain wins. Three misses and you're out.
๐ฅ Code Review Survival
A bare except, a method without self, a reused generator, a decorator that returns the wrong thing. Three misses and you're out.
๐๏ธ Collections Survival
append against extend, remove by value, starred unpacking, dict keys, set operators, and which collection fits the job. Three misses and you're out.
๐ Names and References
b = a, .copy(), shallow copies of nested lists, mutable defaults, locals that hide globals. Three misses and you're out.
๐ฏ Mastery
No clock โ just get N in a row.
๐ Loop Tracer
range that stops before its stop, while loops that overshoot, break, continue, loop else, nested loops and match. Five right in a row.
๐ Calls and Returns
print against return, what a bare call shows in a script, and recursion on the way down and back up. Five in a row.
๐งฏ Exceptions Mastery
Which exception a line raises, and the order try, except, else and finally print in. Five in a row.
๐งฑ Objects Mastery
Shared class attributes, __str__ against __repr__, == without __eq__, and where super().__init__ runs. Five right in a row.
๐ Lazy and Late
Generators that run only when asked and can't be reused, and closures that look a variable up late. Five in a row.