spam cat bat rat elephant spam -1 wolf print spam

1
2
3
spam = ['cat', 'bat', 'rat', 'elephant']
spam [-1] = 'wolf'
print(spam)