difference between del, remove(), pop() function in list | python list | #python

preview_player
Показать описание
Difference between del, remove(), pop()
List = [11,12,13,14,15]
Code:# del keywordList = [11,12,13,14,15]
del List[2]print(List)
Output: [11, 12, 14, 15]
code:# remove() methodList = [11,12,13,14,15]
Output: [11, 13, 14, 15]
code:# pop() methodList = [11,12,13,14,15]

Рекомендации по теме
Комментарии
Автор

what is the difference between pop and del

pv