assignment help 9755.
I need help with seeing where i am going wrong in my python programming. I keep receiving a name error and im uncertain how to fix it.
I attached the homework assignment and the code error i keep receiving. I also entered my code below .
here’s my code
# Illustrate calling a turtle function
#Modified by Tajah Kenner on 11/04/2021
# Define functions
def drawMulticolorSquare(t, sz):
“””Make turtle t draw a multicolor square of with side sz.”””
for i in [‘white’,’lightblue’,’pink’,’black’]:
“””This is where you set up the window and its attributes,
define your variables, and create your turtle(s).”””
wn = turtle.Screen()
jessica = turtle.Turtle() # create jessica and set some attributes
size = 10 # size of the smallest square
for i in range(25):
size = size +3 # increase the size for next time
jessica.forward(10) # move tess along a little
jessica.left(18) # and give her some extra turn
# Call main function – should be last statement in your file