Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Google Analytics 4 The Data Driven Marketing Revolution

Authors: Galen Poll

2024th Edition

B0CRK92F5F, 979-8873956234

Students also viewed these Databases questions