Python programming On a roulette wheel, the pockets are numbered from 0 to 36. The colors of the pockets are as follows:
Posted: Mon Jul 11, 2022 9:55 am
Python programming
On a roulette wheel, the pockets are numbered from 0 to 36. Thecolors of the pockets are as follows: Pocket 0 is green. For pockets 1 through 20, the odd-numberedpockets are red and the even-numbered pockets are black. For pockets 21 through 38, the odd-numberedpockets are black and the even-numbered pockets are red. For pockets 39 through 48, the odd-numberedpockets are red and the even-numbered pockets are black. For pockets 49 through 56, the odd-numberedpockets are black and the even-numbered pockets are red.Write a program that asks the user to enter a pocket number anddisplays whether the pocket is green, red, or black. The programshould display an error message if the user enters a number that isoutside the range of 0 through 56.Rubric -Input - 1 pointOutput - 1 pointProgram Logic - 3 pointsSubmit the Python file for this question.
On a roulette wheel, the pockets are numbered from 0 to 36. Thecolors of the pockets are as follows: Pocket 0 is green. For pockets 1 through 20, the odd-numberedpockets are red and the even-numbered pockets are black. For pockets 21 through 38, the odd-numberedpockets are black and the even-numbered pockets are red. For pockets 39 through 48, the odd-numberedpockets are red and the even-numbered pockets are black. For pockets 49 through 56, the odd-numberedpockets are black and the even-numbered pockets are red.Write a program that asks the user to enter a pocket number anddisplays whether the pocket is green, red, or black. The programshould display an error message if the user enters a number that isoutside the range of 0 through 56.Rubric -Input - 1 pointOutput - 1 pointProgram Logic - 3 pointsSubmit the Python file for this question.