Question: Write a python code to answer the promopts You play a game by flipping a coin 10000 times. You win with 1 (head) and your
Write a python code to answer the promopts You play a game by flipping a coin 10000 times. You win with 1 (head) and your friend wins with 2 (tail). Generate a list of 1s and 2s randomly. Answer each of the following questions by writing codes (not by counting).
* How many games did you win against your friend in this 10000 games? * Who won the 649th game? * Who won the most number of times in the first 5000 games and last 5000 games?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
