1from random import random
2
3def heads_or_tails():
4 guess = input('Pick heads or tails and then press eneter to play: ')
5 if random() > 0.5:
6 return 'tails'
7 else:
8 return 'heads'
9
10print(heads_or_tails() + ' wins' + '!')