type the following code into the window -pressing enter after each lineselection while (selection ! )print(" blue"print(" red"print(" orange"print(" yellow"print(" quit"selection int(input("select color option")if (selection > and (selection )colorselect[selection](finallyyou see the user interface part of the example the code begins by creating an input variableselection it then goes into loop until the user enters value of during each loopthe application displays list of options and then waits for user input when the user does provide inputthe application performs range check on it any value between and selects one of the functions defined earlier using the dictionary as the switching mechanism choose runrun module you see python shell window open the application displays menu like the one shown in figure - figure - the application begins by displaying the menu