0Pricing
Coding for Kids · Lesson

Rolling Two Dice

Add the dice.

Two Dice! 🎲🎲

Many games use TWO dice. Roll them both and add the numbers for your score! ➕

Roll the First Die 🎲

Roll one die and save it.

import random
die1 = random.randint(1, 6)
print('Die 1:', die1)

All lessons in this course

  1. Rolling One Die
  2. Rolling Two Dice
  3. Tracking Dice Points
  4. First to Twenty
← Back to Coding for Kids