# three.9. Roulette Wheel Colours – Python

—————————————————————————————————–
Starting up out with Python, Third Edition, Tony Gaddis
Chapter three
Programming Problems
——————————————————————————————————————————————————————–
9. Roulette Wheel Colours

On a roulette wheel, the pockets are numbered from to 36. The hues of the pockets are as follows:

– Pocket is environmentally friendly.
– For pockets one as a result of 10, the odd-numbered pockets are crimson and the even-numbered pockets are black.
– For pockets eleven as a result of 18, the odd-numbered pockets are black and the even-numbered pockets are crimson.
– For pockets 19 as a result of 28, the odd-numbered pockets are crimson and the even-numbered pockets are black.
– For pockets 29 as a result of 36, the odd-numbered pockets are black and the even-numbered pockets are crimson.

Produce a program that asks the person to enter a pocket quantity and displays whether or not the pocket is environmentally friendly, crimson, or black. The program ought to exhibit an mistake information if the person enters a quantity that is outdoors the range of as a result of 36.

Starting up out with Python. Third Edition. Tony Gaddis.
——————————————————————————————————————————————————————–
Bitcoin Deal with – 1AbnaHDLG3xqmycNHKDKh1gPNst29Rkp6S

Thanks 🙂
——————————————————————————————————————————————————————–

resource