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

A
append()
B
pop()
C
remove()
D
clear()
Solution:

The pop() method removes and returns the last item in a list by default, or a specified index if provided.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

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