thislist = ["apple", "banana", "cherry"]
thislist[1] = "blackcurrant"
print(thislist)
#Change the values "banana" and "cherry" with the
#values "blackcurrant" and "watermelon":
thislist = ["apple", "banana", "cherry", "orange", "kiwi", "mango"]
thislist[1:3] = ["blackcurrant", "watermelon"]
print(thislist)
#Output :['apple', 'blackcurrant', 'watermelon', 'orange', 'kiwi', 'mango']
a = [1,2,3]
a[2] = "b"
print(a)
# [1, 2, 'b']