Question #196

What is the output of the code snippet below?
my_list = [1, 2, 3, 4, 5]
my_list.pop(0)
print(my_list)

pop() removes and returns last value from the list or the given index value. Here, pop() removes, in place, the first value of the list. (geeksforgeeks.org/python-list-pop)


Comment on Disqus:

Question difficulty: 🔵🔵🔵🔵🔵


Similar questions: