Question: python Write a program that flips a coin 10,000 times, then prints the percentage of flips that were Heads and Tails (follow the formatting below)

pythonpython Write a program that flips a coin 10,000 times, then prints

Write a program that flips a coin 10,000 times, then prints the percentage of flips that were Heads and Tails (follow the formatting below) and the longest streak (maximum number of either Heads or Tails in a row). Heads: 50.64% Tails: 49.36% Longest streak: 14

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!