L = ['spam', 'Spam', 'SPAM!'] print L L[0:2] = ['eat', 'more'] # slice assignment: delete+insert print L # replaces items 0,1