Difference between del, remove() & pop() to delete Python list values | Animation (Manim Library)

preview_player
Показать описание
Learn how to remove list values using del keyword, remove() and pop() method. Compare the del, remove() and pop(). Find out when to use pop(), del and remove().
0:09 Remove single element from the list
2:27 Drop the multiple elements from the list
5:21 Remove all the elements from the list
Рекомендации по теме
Комментарии
Автор

You shouldn't have put numbers in your list; that could for sure create ambiguity when looking at the .pop() method -- Since you passed in 3, and you had 3 in your list.

Ilikeminecraft
welcome to shbcf.ru