Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- dice1 = random.randrange(1, 6)
- dice2 = random.randrange(1, 6)
- dice3 = random.randrange(1, 6)
- dice4 = random.randrange(1, 6)
- dice5 = random.randrange(1, 6)
- first_number = input("Pick the postion of your dice 1: ")
- second_number = input("pick the postion of your dice 2: ")
- print("Your dice: ", dice1, dice2, dice3, dice4, dice5)
- print(" Tens?",(first_number))
- print(" Units?",(second_number))
- position1 = len(first_number)
- position2 = len(second_number)
- first_die = (position1 * (10))
- second_die = (position2 *(1))
- total = (first_die + second_die)
- print("Dice value: ", total)
- print("Your current total:", total)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement