0

How to delete first inem from a list

5th May 2020, 11:13 AM
Arydev
Arydev - avatar
2 odpowiedzi
+ 8
Python provides you multiple options for deleting an element from a list. For deleting the first element, you can use any of the below methods: One is by using pop() > list.pop(0) Another method is using del > del list[0] Another method is by using remove() > list.remove(list[0])
5th May 2020, 11:36 AM
Nova
Nova - avatar