What will be the output shape of the following Python code?
import turtle
t=turtle.Pen()
for i in range(1,4):
t.forward(60)
t.left(90)
import turtle
t=turtle.Pen()
for i in range(1,4):
t.forward(60)
t.left(90)A. Rectangle
B. Trapezium
C. Triangle
D. Square
Answer: Option D

Join The Discussion