Question: 1 . The code below will draw a square. How many pixels have been drawn? import turtle t = turtle.Turtle ( ) for i in

1. The code below will draw a square. How many pixels have been drawn?
import turtle
t = turtle.Turtle()
for i in range(4):
t.forward(50)
t.right(90)
turtle.done()2. Write a single line of code to change the turtle screen colour to blue. Assume the only code that has been written so far is the line below:
import turtle
3.Write a single line of code to change the turtle screen colour to yellow AND change the screen width to 500pixels, and the height to 300pixels. Assume the only code that has been written so far is the line below:
import turtle 4.Write a single line of code to draw an 180degree arc that has a radius of 50pixels.
What is the method to allow the user to input information into Turtle (do not include the parameter for the method)?
What is the method that outputs text on the turtle window (do not include the parameter for the method)?

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!