goto( ,yelif command ="circle"radius float(commandlist[ ]width float(commandlist[ ]color commandlist[ strip( width(widtht pencolor(colort circle(radiuselif command ="beginfill"color commandlist[ strip( fillcolor(colort begin_fill(elif command ="endfill" end_fill(elif command ="penup" penup(elif command ="pendown" pendown(elseprint("unknown command found in file:",command #close the file file close( #hide the turtle that we used to draw the picture ht( this causes the program to hold the turtle graphics window open until the mouse is clicked screen exitonclick(print("program execution completed " this code calls the main function to get everything started if __name__ ="__main__"main(when you have data file where each line of the file is its own separate recordyou can process those records as we did in sect the general pattern is to open the fileuse for loop to iterate through the fileand have the body of the for loop process each record the pseudo-code in sect is the abstract pattern for reading one-line records from file pattern for reading single line records from file first the file must be opened file open(filename," " the body of the for loop is executed once for each line in the file for line in fileprocess each record of the file each record must be exactly one line of the input file what processing record means will be determined by the program you are writing print(line closing the file is always good ideabut it will be closed when your program this copy belongs to 'acha