In this activity we develop a Python program based on the probability problem presented in
Using Coding To Simulate a Fair Game, Part 1
Using Coding To Simulate a Fair Game, Part 2
Part 1 leads us through the development of the simulation in the Scratch programming language. Part 2 present the math.
Python executes the program much faster than Scratch, so we can simulate games with much larger goals (play to 6,000 rather than 600), which affects the outcome.
Key terms: probability, coding, programming, Scratch, Python, simulation