Python Programming - Data Types - Discussion

Discussion Forum : Data Types - General Questions (Q.No. 48)
48.
How do you remove the last element from a Python list?
list.remove(-1)
list.pop()
list.delete(-1)
list.removeLast()
Answer: Option
Explanation:
The pop() method without an index argument removes and returns the last element from the list.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.