Vidyalelo
Python · Q157

Functions in Python

Programming · Python · question 157

Q157

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
Answer
B.
5
C.
1
D.
An exception is thrown

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board