Commands Python
Deleting Elements Using Remove(), POP(), And CLEAR() Methods.
There are the following commands which can be used for deleting elements.
1).remove(item): Removes the specified item from the list.
2).pop(index): Removes the element from the given index.3).pop(): Removes the last element.
4).clear(): Removes all the elements from the list.
Very nice! Keep up such good work!
ReplyDeleteVisit this link to learn Python in just 9 days.
ReplyDeletehttps://vsa.edu.in/category/python-programming/