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))
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: Option A

Join The Discussion