What will be the output shape of the following Python code?
import turtle
t=turtle.Pen()
for i in range(0,6):
t.forward(100)
t.left(60)
import turtle
t=turtle.Pen()
for i in range(0,6):
t.forward(100)
t.left(60)A. Hexagon
B. Octagon
C. Pentagon
D. Heptagon
Answer: Option A

Join The Discussion