What Will Be The Output Of The Following Python Codep Pre #915
What will be the output of the following Python code?</p> <pre><code class="language-python">import turtle t=turtle.Pen() t.color(1,1,1) t.begin_fill() for i in range(0,3): t.forward(100) t.right(120) t.end_fill()</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(1,1,1) t.begin_fill() for i in range(0,3): t.forward(100) t.right(120) t.end_fill()
Blank page
A triangle filled in with the colour yellow
A triangle which is not filled in with any colour
Error