Question: I have to write Python statements that draw a square of side length 100 pixels using Turtle graphics. Make sure you import the module turtle

I have to write Python statements that draw a square of side length 100 pixels using Turtle graphics. Make sure you import the module turtle rst. Your rst two and last statement should be as shown:

>>> s = turtle.Screen() # create screen

>>> t = turtle.Turtle() # create turtle

... # now write sequence of statements

... # that draw the square

>>> s.bye() # delete the Screen when done

Then using the approach from the above problem, how do I write python statements that draw a diamond of side length 100 pixels using Turtle graphics.

Thank you very much

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 Programming Questions!