Examveda

What will be the output of the following Python program?
def addItem(listParam):
    listParam += [1]
 
mylist = [1, 2, 3, 4]
addItem(mylist)
print(len(mylist))

A. 5

B. 8

C. 2

D. 1

Answer: Option A


This Question Belongs to Python Program >> Introduction To Python

Join The Discussion

Related Questions on Introduction to Python