.del and .remove


Isn't the .del() method basically the same as .remove()?


.del() isn't something? its:

del aList[index]

and no, because del removes based on index, where as .remove() removes based on item in the list:

aList = ["a", "b", "c", "d", "e"]
del aList[0]


Okay, Gotcha! Thanks!


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.