Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def coin_flip():
- #heads =0 and tails =1
- generated=random.randint(0,2)
- print("heads or tails?")
- if generated==0:
- print("heads")
- elif generated==1:
- print("tails")
- coin_flip()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement