Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from random import randint
- var = raw_imput("How many dices do you want, 1 or 2?"
- rollagain = 'yes'
- def two():
- while rollagain == "yes" or "y":
- print'Rolling the dices..."
- print'The values are ' + str(randint(1,6)) + str(randint(1,6))
- rollagain = raw_input("Roll the dices again?")
- def one():
- while rollagain == "yes" or "y":
- print'Rolling the dice..."
- print'The value is ' + str(randint(1,6))
- rollagain = raw_input("Roll the dice again?")
- if var == "1":
- one()
- elif var == "2":
- two()
- else:
- print'You entered an invalid answer. I am gonna roll either 1 or two dices now. PS - learn to type'
- vari = (randint(1,2))
- if vari == 1:
- print'A single dice it is."
- one()
- else:
- print'Two dices, INCOMING!!!!"
Add Comment
Please, Sign In to add comment