Question: I need to create a Python Roulette program. Here is what needs to be done. 1. Create 1 object that is the roulette wheel. It

I need to create a Python Roulette program. Here is what needs to be done.

1. Create 1 object that is the roulette wheel. It will have numbers from 0 to 39 and the color red or black.

2. Ask a player to pick a number or a color (red or black).

3. Pick a random number from the wheel and compare it to what the player picked or pick a random color (red or black).

4. If they match then the play wins.

5. Allow the play to play multiple times if they choose.

6. If the play picks multiple times then print out the win/losses and percentages.

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!