How to remove the first item from a list in Python

1 Answer

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

lst.pop(0)

print(lst)


'''
run:

['c#', 'java', 'c++', 'c']

'''

 



answered Dec 3, 2017 by avibootz

Related questions

1 answer 283 views
7 answers 1,219 views
1 answer 241 views
1 answer 238 views
...