python programming goto black endfill to process the records in the file in sect we can write python program that reads the lines of this file and does the appropriate turtle graphics commands for each record in the file since each record ( drawing commandis on its own line in the file format described in sect we can read the file by using for loop to read the lines of the file the code of sect is program that reads these commands and processes each record in the filedrawing the picture that it contains reading and processing single line records this imports the turtle graphics module import turtle the main function is where the main code of the program is written def main()this line reads line of input from the user filename input("please enter drawing filename" create turtle graphics window to draw in turtle turtle(the screen is used at the end of the program screen getscreen( the next line opens the file for "ror reading "wwould open it for writingand "awould open the file to append to it ( add to the endin this program we are only interested in reading the file file open(filename" " the following for loop reads the lines of the fileone at time and executes the body of the loop once for each line of the file for line in file the strip method strips off the newline character at the end of the line and any blanks that might be at the beginning or end of the line text line strip( the following line splits the text variable into its pieces for instanceif text contained "goto blackthen commandlist will be equal to ["goto"" "" "" ""black"after splitting text commandlist text split("," get the drawing command command commandlist[ if command ="goto"writing float(commandlist[ ]makes float object out of the string found in commandlist[ you can do similar conversion between types for int objects float(commandlist[ ] float(commandlist[ ]width float(commandlist[ ]color commandlist[ strip( width(widtht pencolor(colorthis copy belongs to 'acha