Answers for "remove idx of list python"

1

remove idx of list python

a = [-1, 1, 66.25, 333, 333, 1234.5]
del a[0]
a
[1, 66.25, 333, 333, 1234.5]
del a[2:4]
a
[1, 66.25, 1234.5]
del a[:]
a
[]
Posted by: Guest on July-14-2021

Code answers related to "remove idx of list python"

Python Answers by Framework

Browse Popular Code Answers by Language