What Will Be The Output Of The Following Python Codep Pre #665
What will be the output of the following Python code?</p> <pre><code class="language-python"> def a(b): b = b + [5] c = [1, 2, 3, 4] a(c) print(len(c)) </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 Functions - Python Function - Quiz No.4.
What will be the output of the following Python code?
def a(b): b = b + [5] c = [1, 2, 3, 4] a(c) print(len(c))
4
5
1
An exception is thrown