You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above code isn't running for me, keeps showing me ERROR message, same with adding g removing lists, removing items using pop.
Is it that theirs an extension I need to add or download on my VS code??? Please HELP...
The text was updated successfully, but these errors were encountered:
inserting items into a List
syntax
lst = ['item1', 'item2']
lst.insert(index, item)
fruits = ['banana', 'orange', 'mango', 'lemon']
fruits.insert(2, 'apple') # insert apple between orange and mango
print(fruits) # ['banana', 'orange', 'apple', 'mango', 'lemon']
fruits.insert(3, 'lime') # ['banana', 'orange', 'apple', 'lime', 'mango', 'lemon']
print(fruits)
The above code isn't running for me, keeps showing me ERROR message, same with adding g removing lists, removing items using pop.
Is it that theirs an extension I need to add or download on my VS code??? Please HELP...
The text was updated successfully, but these errors were encountered: