• Courses
  • Tutorials
  • Practice
  • Contests
Switch to Dark Mode

Python-Quizzes | Python List Quiz | Question 4

Last Updated : Mar 7, 2025
Discuss
Comments

Find the output of the following program: 

def addToList(a): 
	a += [10] 
b = [10, 20, 30, 40] 
addToList(b) 
print (len(b)) 
A

4

B

5

C

6

D

10

Share your thoughts in the comments