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 linecolors ["red""orange""yellow""green""blue"for item in colorsprint(itemend="print(colors sort(for item in colorsprint(itemend="print(the example begins by creating an array of colors the colors are currently in unsorted order the example then prints the colors in the order in which they appear notice the use of the end=argument for the print(function to ensure that all color entries remain on one line (making them easier to comparesorting the list is as easy as calling the sort(function after the example calls the sort(functionit prints the list again so that you can see the result choose runrun module you see python shell window open the application outputs both the unsorted and sorted listsas shown in figure - figure - sorting list is as easy as calling the sort(function