Vidyalelo
Python · Q121

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 121

Q121

What will be the output of the following Python code? a=[13,56,17] a.append([87]) a.extend([45,67]) print(a)

A.
[13, 56, 17, [87], 45, 67]
Answer
B.
[13, 56, 17, 87, 45, 67]
C.
[13, 56, 17, 87,[ 45, 67]]
D.
[13, 56, 17, [87], [45, 67]]

Answer: Option A

Solution

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