roll a dice code example Example: roll a dice import random dice = random.randint(1, 6) print("You rolled a", dice)