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.

Comments

  1. Very nice! Keep up such good work!

    ReplyDelete
  2. Visit this link to learn Python in just 9 days.
    https://vsa.edu.in/category/python-programming/

    ReplyDelete

Post a Comment

Popular Posts