The del keyword used to delete list.
Note: If if you run this program you will get error because list is deleted.
The del keyword is used to delete specified index item from list.
The remove() method is used to remove an item from list. The remove() method is used to remove item by value.
The pop() method removes the specified index item from list.
If you do not specify the index then the pop() method removes the last item from list.
The clear() method empties the list.
The list still remains but all item deleted.
Comsysapp.com is an educational website. Students and software developers can learn programming language tutorials. Comsysapp is very useful for beginners and professional developers. Comsysapp provides tutorial in easy language. Comsysapp.com has focus on simplicity.
Comsysapp.com provides free tutorials like c, html, css, etc. All tutorials are free for beginner and professionals.
comsysapp.com is not responsible for any mistake. We are not responsible if information made available on our website is incomplete or invalid. But comsysapp.com always try for zero-zero mistake.
comsysapp.com does not collect any data from users. We use Google AdSense advertising on our website. We never ask personal or private information.
copyright © 2023