How to remove item at specific index from a list in Python

1 Answer

0 votes
lst = [34, 78, 34, 90, 'python', 'java', 7.28, 34]
  
index = 2

lst.pop(index)
  
print(lst) 



'''
run:

[34, 78, 90, 'python', 'java', 7.28, 34]

'''

 



answered Jan 10, 2021 by avibootz

Related questions

...