The example of sequential-driven code is:
def h1():
t.forward(30)
def h2():
t.left(45)
def h3():
t.right(45)
wn.onkey(h1, "Up")
wn.onkey(h2, "Left")
wn.onkey(h3, "Right")
Which of the following is an example of sequential-driven code?(1 point)%0D%0AResponses%0D%0A%0D%0Adef h1():%0D%0A t.forward(30)%0D%0Adef h2():%0D%0A t.left(45)%0D%0Adef h3():%0D%0A t.right(45)%0D%0Awn.onkey(h1, "Up")%0D%0Awn.onkey(h2, "Left")%0D%0Awn.onkey(h3, "Right")%0D%0Adef h1(): t.forward(30) def h2(): t.left(45) def h3(): t.right(45) wn.onkey(h1, "Up") wn.onkey(h2, "Left") wn.onkey(h3, "Right")%0D%0A%0D%0Afor i in range(x):%0D%0A for j in range(y):%0D%0A t.forward(z)%0D%0A t.right(360 / y)%0D%0A t.right(360 / x)%0D%0Awn.listen()%0D%0Awn.mainloop()%0D%0Afor i in range(x): for j in range(y): t.forward(z) t.right(360 / y) t.right(360 / x) wn.listen() wn.mainloop()%0D%0A%0D%0AWn.onkey(picture, "p")%0D%0Awn.listen()%0D%0Awn.mainloop()%0D%0AWn.onkey(picture, "p") wn.listen() wn.mainloop()%0D%0A%0D%0Awn.onclick(f)%0D%0Awn.listen()%0D%0Awn.mainloop()
1 answer