What Will Be The Output Of The Following Python Functionsp Pre #912
What will be the output of the following Python functions?</p> <pre><code class="language-python">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)</code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Python Modules - Python Turtle Module - Quiz No.1.
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)
Error
Two triangles, joined by a straight line
Two triangles, joined at one vertex
Two separate triangles, not connected by a line