What Will Be The Output Of The Following Python Codep Pre #916
What will be the output of the following Python code?</p> <pre><code class="language-python">import turtle t=turtle.Pen() t.color(0,1,0) t.begin_fill() for i in range(0,4): t.forward(100) t.right(90)</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.2.
What will be the output of the following Python code?
import turtle t=turtle.Pen() t.color(0,1,0) t.begin_fill() for i in range(0,4): t.forward(100) t.right(90)
A square filled in with the colour green
A square outlined with the colour green
Blank canvas
Error