Sep-26-2020, 11:02 PM
Thanks for the reply,
With your notes i was able to re order the code for a working result xd
Thanks again.
With your notes i was able to re order the code for a working result xd
Thanks again.
#dice game name = input("what is your name?") print ("Hello!",name) total = 0 money = 100 import random while money >=0: input("Press Enter to roll") die1 = random.randint(1, 6) die2 = random.randint(1, 6) total = die1 + die2 money -=1 if total <10: money -=20 print ("you rolled a",total) print ("\tloser") print ("your cash is",money) elif total >=10: money +=100 print("you rolled a",total) print("\twinner!") print("your cash is",money)