Sign in to test your solution.
# Polyhedral dice program # ------------------------- # Import libraries # ------------------------- import random # ------------------------- # Subprograms # ------------------------- def roll_dice(): return random.randint(1, 6) # ------------------------- # Main program # ------------------------- random.seed() number = roll_dice() print("You rolled a", number)

  Python sandbox

This window allows you to run Python code without installing a thing. The code you write here is not automatically submitted to Dodona.

Test case being debugged