How To Win Roulette Casino

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

4 comments

  1. This is really helpful and I really appreciate these videos 🙂 Having this course and using this book during my class now 🙂

    Reply
  2. Very good, great tutorial!

    Reply
  3. you helped me understand the concepts really well thanks for this video!!

    Reply
  4. Thanks a lot. It really helped.

    Reply

Have your say