Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Coin flip
- from random import randint
- def flip():
- global coin_flip
- coin_flip = randint(1,2)
- return
- flip()
- if coin_flip == 1:
- coin= "head"
- else:
- coin = "tails"
- print(coin)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement