Skip to content

Night 9: Roll the dice

← 30 Code Nights · Language: Python Pseudocode

Tonight: roll the dice

  • Games need surprises. Tonight your pet rolls a dice.
  • You will learn one thing: random numbers.

Words for tonight

Word Meaning
random you cannot know it before; it can be different each time
import bring in extra tools for your program
choice one thing picked from many

Handout

Log in or create account

IGCSE, A-Level & AP