figure - it' always good idea to provide feedback for incorrect input open python file window you see an editor in which you can type the example code type the following code into the window -pressing enter after each lineprint(" red"print(" orange"print(" yellow"print(" green"print(" blue"print(" purple"choice int(input("select your favorite color")if (choice = )print("you chose red!"elif (choice = )print("you chose orange!"elif (choice = )print("you chose yellow!"elif (choice = )print("you chose green!"elif (choice = )print("you chose blue!"elif (choice = )print("you chose purple!"elseprint("you made an invalid choice!"the example begins by displaying menu the user sees list of choices for the application it then asks the user to make selectionwhich it places inside choice the use of the int(function ensures that the user can' type anything other than number