SHARE
TWEET

Untitled




Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- def cho_han(guess,bet):
- roll=random.randint(1,6)
- roll2=random.randint(1,6)
- total=roll+roll2
- if total%2==0:
- print("Even number!")
- else:
- print("Odd number!")
- if guess=="Even" and total%2==0:
- print("You won: $" + str(bet))
- return bet
- else:
- print("You lost: $"+str(bet)
- return -bet
- 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.