Question: python Q1: You are going to define a list of 8 colors. The computer will automatically generate 4 colors from the list of possible colors

python
Q1: You are going to define a list of 8 colors. The computer will automatically generate 4 colors from the list of possible colors (it should be possible for the computer to randomly select the same color more than once). For example, the computer may choose "red", "blue", "red", "green". This sequence should not be displayed to the user. After this is done you should ask the user to enter their choice of 4 colors from the same list of possible colors (list with 8 colors) the computer used. For example, they may choose "pink", "blue", "yellow" and "red". After the user has made their selection, the program should display how many colors they got right in the correct position and how many colors they got right but in the wrong position. In the example above, it should display the message "Correct color in the correct place: 1 " and "Correct color but in the wrong place: 1 ". The user continues guessing until they correctly enter the 4 colors in the order they should be in. At the end of the game, the program should display a suitable message and tell them how many guesses they took. You should design your program such that the different tasks are done in different functions. It should also handle any bad input
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
