Question: write this code using python and format it in python coding Problem 2: Roulette Description. The Roulette Problem! Write a program which promps the user
write this code using python and format it in python coding
Problem 2: Roulette Description. The Roulette Problem! Write a program which promps the user for some integer, and outputs the color of the bin indicated by the user: Green if 0 or 13, otherwise: Pink if a number which is divisible by 5, otherwise: Blue if an even number below 10 Black if an odd number below 10 Blue if an odd number 10-20 Black if an even number 10-20 Input. User input integer. Output. The color of the roulette bin for that integer. Only one color should be output for each number. Beware. You can assume that the user inputs an integer, but numbers that are not allowed should be handled, i.e. a custom error message for negative integers and for integers that are too big. The program does need to prompt the user to try again until a correct input is given (we are only assuming the user inputs numbers).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
