import random #varible list diceroll = random.randint(1,7) win = ("You win") lose = ("You lose") bonus = ("You bouns win") minroll = 1 maxroll = 6 diceroll = random.randint(minroll,maxroll) #main program print diceroll if diceroll == minroll: print lose elif diceroll == maxroll: print bonus else: print win
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more