0Pricing
Coding for Kids · Lesson

Rolling One Die

Random 1 to 6.

Roll the Dice! 🎲

Let's make the computer roll a dice for us! 🎲 Every roll is a surprise — just like a real game.

Meet random 🎰

Python has a helper called random for surprises. We bring it in with import.

import random
print('random is ready! 🎲')

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