Intro to Python Classwork: Coin Flips
Write a Python program named "CoinFlips.py" that first asks the
user how many times a coin should be flipped, and then "flips"
the coin that many times.  After each flip your program should
display "Heads" or "Tails".  After all of the flips have been
made, your program should display the total number of times that
each side of the coin landed up, along with the percentages of
heads and tails (rounded to the nearest integer).

Your program does not need to perform any error trapping.  In
other words, you may assume that the user will enter a positive
integer when asked how many times the coin should be flipped.

Your program's output should be formatted in a manner similar to
what is shown below.  You may put all of your code into the main
area of the program (that is, you are not required to create
separate functions).  The "randint" function is the only external
function that your program may import.


As always, all of your code must be your own, written entirely and
only by you within your online CodeHS.com account.  You must never
copy/paste, receive, view, or in any way use code that was created
or modified by another person, entity, or artificial intelligence.


Example Program Run #1
How many times should this program flip a coin?  5

Tails
Heads
Heads
Tails
Heads

Total Number of Flips:  5
Number of Heads:  3 (60%)
Number of Tails:  2 (40%)


Example Program Run #2
How many times should this program flip a coin?  7

Heads
Tails
Heads
Tails
Tails
Tails
Tails

Total Number of Flips:  7
Number of Heads:  2 (29%)
Number of Tails:  5 (71%)


Example Program Run #3
How many times should this program flip a coin?  1

Tails

Total Number of Flips:  1
Number of Heads:  0 (0%)
Number of Tails:  1 (100%)


Advanced Option #1
Instead of the coin having an equal chance of landing with "Heads"
up or "Tails" up (50/50), make it twice as likely that the coin will
land with "Heads" up (66.67/33.33).  In other words, there should
be a 2/3 chance of the coin showing "Heads", and only a 1/3 chance
that it shows "Tails".  So, for example, if the coin is flipped
6000 times, instead of showing "Heads" and "Tails" (roughly) 3000
times each, it will show (around) 4000 "Heads" and 2000 "Tails".

Advanced Option #2
In addition to flipping a coin, also roll a fair six-sided die.
You can add the new die roll code into your existing 'for' loop
in your program.  Then, in addition to displaying the results of
each coin flip, also display the results of each die roll (e.g.,
"Roll #1: 5", "Roll #2: 1", "Roll #3: 6", etc.).  Finally, after
all of the flips and rolls, along with the coin statistics, also
display statistics (including percentages) for the die rolls.
This advanced option may be completed in addition to, or instead
of, the first advanced option.