What is the use of POP function in List?
1. It removes an item from the beginning of the list.
2. It removes an item to the end of the list.
3.All of these.
4.It removes an item anywhere of the list.
Answers
Answered by
1
Answer:
2.It removes an item to the end of the list.
Explanation:
pop is an inbuilt function in Python that removes and returns last value from the list or the given index value. Parameter : index (optional) - The value at index is popped out and removed. If the index is not given, then the last element is popped out and removed.
I hope it's helpful
Answered by
1
Answer:
it removes an item to the end of the list
Similar questions