I still do not understand the difference between deleting an entry and removing one. If I do this for example
backpack = [‘xylophone’, ‘dagger’, ‘tent’, ‘bread loaf’]
backpack.remove(‘dagger’)
print backpack
del backpack[‘tent’]
print backpack
I get this message:
[‘xylophone’, ‘tent’, ‘bread loaf’] Traceback (most recent call last): File “python”, line 4, in module. TypeError: list indices must be integers, not str.