Advertisement
DrAungWinHtut

dice.py

Dec 15th, 2022
998
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.53 KB | None | 0 0
  1. import random
  2.  
  3. print('BIG or SMALL?')
  4. bet = input()
  5. print('the dice are running....')
  6. dice1 = random.randint(1, 6)
  7. dice2 = random.randint(1, 6)
  8. print('dice1 is stopping.... ', dice1)
  9. print('dice2 is stopping.... ', dice2)
  10. result = dice1+dice2
  11. print('result: dice1 + dice2 = ', result)
  12.  
  13. if result > 6:
  14.     print("BIG")
  15.     if bet == 'BIG':  # BIG
  16.         print('You Win!')
  17.     else:
  18.         print('You Lose!')
  19. else:
  20.     print("SMALL")
  21.     if bet == 'SMALL':
  22.         print('You Win!')
  23.     else:
  24.         print('You Lose!')
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement