Computer Science, asked by greatsnehagupta, 8 months ago

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 adarshsingh8882
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 vanshika4769
1

Answer:

it removes an item to the end of the list

Similar questions