Q. Which method removes and returns the last item in a list?

A
pop()
B
remove()
C
delete()
D
extract()
Solution:

pop() removes and returns the last item, e.g., [1, 2].pop() returns 2.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!