Vidyalelo
Python · Q135

Module in Python

Programming · Python · question 135

Q135

What will be the output of the following Python functions? import turtle t=turtle.Pen() for i in range(0,3): t.forward(100) t.left(120) t.back(100) for i in range(0,3): t.forward(100) t.left(120)

A.
Error
B.
Two triangles, joined by a straight line
C.
Two triangles, joined at one vertex
Answer
D.
Two separate triangles, not connected by a line

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board