What is the purpose of the del operator and pop method? Try deleting a slice.
Answers
Answered by
2
Answer:
- the remove method first matching element( which is passed an argument ] from the list the pop method removes an element at a given index and will also return the removed item you can also use the del keyword in python to remove an element or slice from a list
Similar questions