Question: import turtle wn = turtle.Screen ( ) input ( Press Enter to continue.. ) wn . bgcolor ( lightgreen ) tess =

import turtle
wn = turtle.Screen()
input("Press Enter to continue..")
wn.bgcolor("lightgreen")
tess = turtle.Turtle()
tess.color("blue")
tess.shape("turtle")
print(range(5,60,2))
tess.up() # this is new
for size in range(5,60,2): # start with size =5 and grow by 2
tess.stamp() # leave an impression on the canvas
tess.forward(size) # move tess along
tess.right(24) # and turn her
wn.exitonclick()You need to change the program ActiveCode: 1(Ch03_7) in the online interactive Python book. (You
can find the code in Chapter 4 Python Turtle Graphics, Section 4.8A Few More turtle Methods and
Observations. I copy the code as below for your reference:
import turtle
wn = turtle.Screen ()
input("Press Enter to continue..")
wn.bgcolor("lightgreen")
tess = turtle.Turtle()
tess.color("blue")
tess.shape("turtle")
print(range (5,60,2)
tess.up() # this is new
for size in range (5,60,2) : # start with size =5 and grow by 2
tess.stamp() # leave an impression on the canvas
tess.forward(size) # move tess along
tess.right(24) # and turn her
wn.exitonclick()
For this assignment, you need to change the above code so that turtle tess will move with her twin
brother teddy. (Hint: You need create her twin brother teddy first and then let both move in the for loop.)
Please mark teddy using a different color from tess so that you can tell the moves by the twins. At the end
of the moves, change the shape of tess to square and change the shape of teddy to circle so that we can see
where the twins are at the end.
 import turtle wn = turtle.Screen() input("Press Enter to continue..") wn.bgcolor("lightgreen") tess

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!