subject

What does the following program do?
import turtle
def main():
turtle. hideturtle()
square(100,0,50,'blue')
def square(x, y, width, color):
turtle. penup()
turtle. goto(x, y)
turtle. fillcolor(color)
turtle. pendown()
turtle. begin_fill()
for count in range(2):
turtle. forward(width)
turtle. left(90)
turtle. end_fill()
main()
it draws 2 blue lines.
a) it draws a blue square at coordinates (100, 0), 50 pixels wide, starting at the top right. b) it draws a blue square at coordinates (0, 50), 100 pixels wide, starting at the top right. c) it draws a blue square at coordinates (100, 0), 50 pixels wide, in the lower-left corner. d) nothing since you cannot call a function with turtle graphics corner

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
What side length would you specify if you were required to create a regular hexagonal plate that was composed of 33 cm(squared) of sheet metal? dimension the side length to 0.1 cm
Answers: 2
question
Computers and Technology, 23.06.2019 06:00
What machine listens for http requests to come in to a website’s domain? a. a router b. a browser c. a server d. a uniform resource locator
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Drag the tiles to the correct boxes to complete the pairs. match the errors with their definitions. #name #value #ref when a formula produces output that is too lengthy to fit in the spreadsheet cell arrowright when you enter an invalid cell reference in a formula arrowright when you type text in cells that accept numeric data arrowright when you type in a cell reference that doesn’t exist arrowright reset next
Answers: 1
question
Computers and Technology, 23.06.2019 22:20
What is a programming method that provides for interactive modules to a website?
Answers: 1
You know the right answer?
What does the following program do?
import turtle
def main():
turtle. hideturtle...
Questions
question
Mathematics, 26.06.2019 05:10