unfortunatelypython doesn' come with switch statement the best you can hope to do is use an if elif statement for the task howeverby using dictionaryyou can simulate the use of switch statement the following steps help you create an example that will demonstrate the required technique this example also appears with the downloadable source code as pythonswitch py 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 linedef printblue()print("you chose blue!\ \ "def printred()print("you chose red!\ \ "def printorange()print("you chose orange!\ \ "def printyellow()print("you chose yellow!\ \ "before the code can do anything for youyou must define the tasks each of these functions defines task associated with selecting color option onscreen only one of them gets called at any given time type the following code into the window -pressing enter after each linecolorselect printblue printred printorange printyellow this code is the dictionary each key is like the case part of the switch statement the values specify what to do in other wordsthis is the switch structure the functions that you created earlier are the action part of the switch -the part that goes between the case statement and the break clause