All Challenges

Challenge 077 · Ages 11–16

Python Dice Roller

Write a dice roller.

Recommended Guided Learning Time: 2 hours

Learners may require additional or fewer hours depending on age, prior experience, pace and the level of development they choose to take their project to.

Primary STEAM area

Technology

The Challenge

What will your learner investigate?

Can you write a dice roller. and explain the choices that make your solution effective?

Learning outcomes

  • Write and run Python code using appropriate variables, inputs and control structures.
  • Test, debug and improve the program.
  • Explain how the algorithm turns a problem into a working digital solution.

Connected learning

Computing: programming and algorithms; Mathematics: logic, number and variables; English: precise instructions and documentation; PSHE: responsible technology use.

Dream Areas

Software engineeringcomputer sciencedata sciencecybersecurityautomation engineering

Prepare for this Challenge

What you'll need

Here's what may be useful for completing this activity. Requirements may vary depending on the learner, activity format and equipment available.

Materials & consumables

  • Pseudocode sheet
  • dice outcome checklist.

Equipment, tools & software

  • Computer
  • Python 3 or browser-based Python editor.

Safety & preparation

  • Use school-approved coding environments
  • no personal accounts required.

These preparation notes support planning and do not replace a project-specific risk assessment or appropriate adult supervision.