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)) A. 4 B. 5 C. 1 D. An Exception is thrown Answer Workspace Report Discuss Answer with explanation Answer: Option B Explanation Since a list is mutable, any change made in the list in the function is reflected outside the function. Workspace
Discuss about the question