Answers for "list remove index"

6

python list remove at index

>>> del a[2:4]
>>> a
[0, 1, 4, 5, 6, 7, 8, 9]
Posted by: Guest on December-10-2019
2

python list remove at index

a = ['a', 'b', 'c', 'd']
a.pop(1)

# now a is ['a', 'c', 'd']
Posted by: Guest on August-11-2020
0

delete item from list

listname.remove(element)
Posted by: Guest on October-09-2020

Python Answers by Framework

Browse Popular Code Answers by Language