Question: Python program that will do a coin toss run it for 10,000 trials, printing out the fraction of trials in which there are 0, 1,

Python program that will do a coin toss run it for 10,000 trials, printing out the fraction of trials in which there are 0, 1, 2, and 3 heads.

There will be 3 tosses of the coin per trial thus the -3 heads- I'm asking for.

Example:

Trial 1: Heads, heads, tails so we have 2 heads, we'd count that and so on.

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!