Python Programming - Lists - Discussion

Discussion Forum : Lists - General Questions (Q.No. 17)
17.
What is the difference between the remove and pop methods in Python lists?
remove removes by value, pop removes by index.
remove removes by index, pop removes by value.
Both remove and pop remove by index.
Both remove and pop remove by value.
Answer: Option
Explanation:
The remove method removes an element by value, while the pop method removes an element by index.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.