# Coin Flip
# Challenge Chapter 3

import random

print('Flip the coin 100 times and see how many times tails come up.')
input('Flip...')

# Set initial values

coin = random.randint(1, 2)

tries = 0

# flipping loop
while tries != 100:
    if coin == 1:
        print("heads")
    else:
        print("tails")
    
    input("Flip again...")
    tries += 1


input('\nPress the enter key to exit.')
