✖️
Times-tables quiz card
Generate a fresh times-table quiz — questions on top, answers below.
Builder· ages 10–1215 minrandomforlist comprehensionf-string formatting
quiz.py
…First load pulls ~10 MB of Python. Only happens once — the browser caches it after.
What should the output look like?
The output should show numbered questions and an answers section.
📖
How this works
A list comprehension is a compact way to build a list. Here we build a list of random numbers, then print them twice — first as questions with blanks, then as answers.
Your turn — try these
- 1Add a subtraction quiz below the multiplication one.
- 2Randomly mix in some tricky multiplications (both operands random).
- 3Time yourself solving them — print how long each question SHOULD take at your grade level.