4. What will be the output of the following program? import turtle a = turtle. Turtle() b = turtle.Turtle() c = turtle. Turtle() def square(): for i in range(4): a.forward(100) a.left(90) def triangle(): for i in range(3): b.forward(50) b.left(120) squarel) b.goto(0,100) triangle() b.goto(50,100) triangle() c.goto(50,0) C.circle(50)
Attachments:
Answers
Answered by
2
Explanation:
(ii) Turtle can be used to create simple interactive games such as T-rex Runner.
Similar questions