Computer Science, asked by mrpesmobile05, 3 months ago

explain the difference between pop and del function of python ​

Answers

Answered by kkamalpreet763
3

Explanation:

In python del is a keyword and remove(), pop() are in-built methods. The purpose of these three are same but the behavior is different remove() method delete values or object from the list using value and del and pop() deletes values or object from the list using an index.

Answered by Anonymous
9

Answer:

In python del is a keyword and remove(), pop() are in-built methods. The purpose of these three are same but the behavior is different remove() method delete values or object from the list using value and del and pop() deletes values or object from the list using an index

Similar questions