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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started