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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 00:30, louie8656
Match the sentence fragment in the first column with the appropriate ending in the second column. a little per favore?
Answers: 1
image
Computers and Technology, 24.06.2019 06:30, chloeholt123
For which utilities, if any, does the landlord pay?
Answers: 2
image
Computers and Technology, 24.06.2019 17:40, palmekar000
When analyzing data sets, such as data for human heights or for human weights, a common step is to adjust the data. this can be done by normalizing to values between 0 and 1, or throwing away outliers. for this program, adjust the values by subtracting the smallest value from all the values. the input begins with an integer indicating the number of integers that follow. ex: if the input is 5 30 50 10 70 65, the output is: 20 40 0 60 55
Answers: 1
image
Computers and Technology, 24.06.2019 22:00, kingkush85
Difference between ancient and modern mode of information transmission
Answers: 1
You know the right answer?
What does the following program do?
import turtle
def main():
turtle. hideturtle...

Questions in other subjects: