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
Get step-by-step solutions from verified subject matter experts
