Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from random import choice
- class coin:
- def flip(self, x):
- myList = ['head', 'tails']
- rand = choice(myList)
- if x == rand:
- print('You win! :D')
- else:
- print('Better luck next time D:')
- while True:
- usrin = input("Head or Tails : ").lower()
- cf = coin()
- cf.flip(usrin)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement