How to delete the first element from a lists in Python

1 Answer

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

print(lst)

del lst[0]

print(lst)




'''
run:

['python', 'c', 'c++', 'java']
['c', 'c++', 'java']

'''

 



answered Apr 29, 2021 by avibootz

Related questions

...