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 197 views
7 answers 908 views
1 answer 160 views
1 answer 157 views
...