SHARE
TWEET

Untitled

a guest Nov 19th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def cho_han(guess,bet):
  2.   roll=random.randint(1,6)
  3.   roll2=random.randint(1,6)
  4.  
  5.   total=roll+roll2
  6.  
  7.   if total%2==0:
  8.     print("Even number!")
  9.   else:
  10.     print("Odd number!")
  11.  
  12.   if guess=="Even" and total%2==0:
  13.     print("You won: $" + str(bet))
  14.     return bet
  15.   else:
  16.     print("You lost: $"+str(bet)
  17.     return -bet
  18.  
  19. cho_han("Odd",15)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top