Vidyalelo
Python · Q23

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 23

Q23

What is the output of the following code:my_list = [1, 2, 3]my_list.append(4)print(my_list)

A.
[1, 2, 3]
B.
[4, 1, 2, 3]
C.
[1, 2, 3, 4]
Answer
D.
None of the above

Answer: Option C

Solution

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