Question
What is the output of the following piece of code?def a(b): b = b + [5] c = [1, 2, 3, 4]a(c)print(len(c))
Answer: Option B
Was this answer helpful ?
Since a list is mutable, any change made in the list in the function is reflected outside the function.
Was this answer helpful ?
Submit Solution