Is The Following Python Code Validp Pre Langpython #483
Is the following Python code valid?</p> <pre><code class="language-python"> >>> a=2,3,4,5 >>> 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 Tuples - Python Tuples - Quiz No.3.
Is the following Python code valid?
>>> a=2,3,4,5 >>> a
Yes, 2 is printed
Yes, [2,3,4,5] is printed
No, too many values to unpack
Yes, (2,3,4,5) is printed