Head Tail

posted Mar 17, 2017, 7:35 AM by Attila Lengyel
def headtail():
  bet = input("Head or Tail:")
  flip = random.randint(0,1)
  if flip == 0:
    coin = "Head"
  else:
    coin = "Tail"
  
  if bet == coin:
    return True
  
  return False

Comments