Q. Which method removes and returns the last item in a list?
Solution:
pop() removes and returns the last item, e.g., [1, 2].pop() returns 2.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
pop() removes and returns the last item, e.g., [1, 2].pop() returns 2.
Strengthen Your Practice with our comprehensive question bank.