What Is The Output Of The Following Piece Of Codep Pre #402
What is the output of the following piece of code?</p> <pre><code class="language-python"> a=list((45,)*4) print((45)*4) print(a) </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 Lists - Python Lists - Quiz No.7.
What is the output of the following piece of code?
a=list((45,)*4) print((45)*4) print(a)
180 [(45),(45),(45),(45)]
(45,45,45,45) [45,45,45,45]
180 [45,45,45,45]
Syntax error