Examveda

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))

A. 4

B. 5

C. 1

D. An exception is thrown

Answer: Option A


This Question Belongs to Python Program >> Functions In Python

Join The Discussion

Related Questions on Functions in Python