Computer Science, asked by XxMissPriyaxX04, 1 month ago

what happens when we remove an element from a list?​

Answers

Answered by sarvani61
1

Answer:

Answers. and pop removes the item at a specific index and returns it. Use del to remove an element by index, pop() to remove it by index if you need the returned value, and remove() to delete an element by value. The last requires searching the list, and raises ValueError if no such value occurs in the list

Answered by mouzauiransari
3

Answer:

pop removes the itemat a specific index and returns it. Use delto remove an element by index, pop() to remove it by index if you need the returned value, and remove() to delete an element by value. The last requires searching the list, and raises ValueError if no such value occurs in the list.

Explanation:

Hope it helps you

Similar questions