How to delete the first two elements from a list in Python

1 Answer

0 votes
lst = ["python", "java", "php", "c++", "javascript"]

del lst[:2]

print(lst)


'''
run:

['php', 'c++', 'javascript']

'''

 



answered Oct 27, 2018 by avibootz

Related questions

...