Python-Quizzes | Python List Quiz | Question 4

Last Updated :
Discuss
Comments

Find the output of the following program: 

Python
def addToList(a):
    a += [10]

b = [10, 20, 30, 40]
addToList(b)
print(len(b))

4

5

6

10

Share your thoughts in the comments