0

Is 'del' a function or a statement?

25th Mar 2018, 2:19 AM
Lightly Salted7
4 Réponses
+ 3
In Python 'del' is a built-in function. This operator stands for "delete." ... With del, we specify a list, dictionary or other collection. We pass an index or key we want to remove. ... Del examples. Here we call del to remove the third element in a list. ... Remove. This method is available on lists. ... Syntax. ... Dictionary, del. ... Performance. ... String error.
25th Mar 2018, 2:59 AM
BroFar
BroFar - avatar
+ 2
ya me to at first which would have aligned with your answer @Jonathan
25th Mar 2018, 3:02 AM
BroFar
BroFar - avatar