Examveda

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]

D. None of the above

Answer: Option C


This Question Belongs to Python Program >> Lists In Python

Join The Discussion

Related Questions on Lists in Python