Write a program coin_flipper.py
that uses the random
method to flip a virtual coin to get a result of heads
or tails
. Flip the coin 100 times and count the number of heads and tails that result, then report that result at the end of the program.
Extension: Modify the program so that the user can specify how many times they wish the coin to be flipped.