Vidyalelo
Python · Q116

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 116

Q116

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

A.
1
B.
4
C.
5
Answer
D.
8

Answer: Option C

Solution

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