substring locations exercise rename the example file locationsstub py to be locations pyand complete the function printlocationsto print the index of each location in the string where target is located for exampleprintlocations('this is dish''is'would go through the string 'this is dishlooking for the index of places where 'isappearsand would print similarly printlocations('this is dish'' 'would print the program stub already uses the string method count you will need to add code using the more general form of find graphics graphics make programming more fun for many people to fully introduce graphics would involve many ideas that would be distraction now this section introduces simplified graphics module developed by john zelle for use with his python programming book my slight elaboration of his package is graphics py in the example programs warningyou need the file graphics py in the same folder as any graphics program you write be sure to save any graphics program you write in such folder (like my examples folderthe easiest way to ensure this is to start in the desired folderas discussed in starting idle for editing (page warningto work on the most systemsthis version of graphics py cannot be used from the idle shell there is an issue with the use of multiple threads of execution graphics introduction noteyou will just be user of the graphics py codeso you do not need to understand the inner workingsit uses all sorts of features of python that are way beyond these tutorials there is no particular need to open graphics py in the idle editor load into idle and start running example graphintrosteps pyor start running from the operating system folder each time you press returnlook at the screen and read the explanation for the next line(spress returnfrom graphics import win graphwin( objects and methods