← Back

JUMP123 Times Table Generator

An interactive worksheet for Judge, Unpack, Modify, and Program
Judge icon

Predict, evaluate, and reflect

Read (don’t run yet) and predict what the starter code will output. Then evaluate quality and potential issues.
Starter code snippet

What does the program do?
(What happens when it runs?)

What could make it better?
(Is there anything you would change or add?)

Why was it made like this?
(What do you think the programmer wanted it to do?)

Why might the program not work?
(What could stop it from running properly?)

What kind of mistake or error could happen?
(Is it a typing error, logic error, or input problem?)

Unpack icon

Investigate the program features

Explore how the Times Table Generator works. Fill in your answers below.

Loads an interactive Python demo from trinket.io

Focus Area Question Answers
Identify parts What variables can you find in this program? (What are the names of the values that store data?)
Understand process What does the for x in range(1,11): line do? (How many times will the loop run?)
Explore change What would happen if you changed the range to (1,6) instead of (1,11)? (How would that affect the output?)
Output formatting What does the f in print(f"...") do? (How does it help display variable values in the text?)
Debug What kind of error might happen if you removed answer = 0 at the start? (Would the program still run correctly? Why or why not?)
Predict & Reason What would happen if timesTable was a word instead of a number? (Think about what Python would do when it tries to multiply.)
Modify icon

Improve and extend the Times Table Generator

Modify your program following these tasks. Tick each one when complete.

Loads an interactive Python demo from trinket.io

Focus Task
Change your previous program so that… The user can choose which times table to display. (Use input() to let them type a number.)
What happens when you alter your program so that…? Change the values in range so the generator outputs from 1 to 12.
Add to the program so that… It shows the total sum of all answers at the end. (Add a variable to track the running total.)
Improve your program. Add functionality for the user to enter how far the times table should go.
1. Create a variable called maxValue
2. Assign a value to maxValue through user input
3. Add a message explaining what to enter
4. Replace 13 in range(1, maxValue + 1) with maxValue
5. Test your code
Program icon

Times Table Generator

You will create a quiz program that tests a player’s knowledge of their times tables.

Steps Focus / Skill Instructions
1Create global variablesMake a variable for the times table number (timesTable) and how far to go (maxValue).
2Output textPrint a welcome message and explain what the program will do.
3Create inputsCreate inputs for the times table number and how far to go.
4Use a for loopRepeat each question for the chosen range of numbers.
5Take input inside the loopAsk the user for their answer each time.
6Use variables in calculationsWork out the correct answer.
7Use an if statementCheck if the user’s answer is correct or incorrect.
8(Extension) Use a score variableAdd a score counter to track correct answers.
9Output final scoreAt the end, show how many answers were correct.
10Output a progress messageAdd feedback based on score (e.g., Perfect score!, Great job!, or Keep practising!).

Loads an interactive Python demo from trinket.io

JUMP123 Assessment

Level 1 Level 2 Level 3

Level 1 badge

Level 2 badge

Level 3 badge

The program uses basic code we’ve learned before.

Some parts work, but there are mistakes or things missing.

It doesn’t fully do what it should yet.

The program has the main idea working (like a loop, input, or if statement).

It mostly works, but might still have a few small errors or need clearer output.

The program works perfectly and does everything the task asked for.

It’s clear, correct, and easy to use — maybe even has extra features or nice touches.