my_list = ['apple', 'banana', 'cherry']
print("Original List:", my_list)
# change the value of the second item
my_list[1] = 'orange'
print("Modified List:", my_list)
Original List: ['apple', 'banana', 'cherry']
Modified List: ['apple', 'orange', 'cherry']
my_list
` with three items. We then print the original list using `print("Original List:", my_list)
`.1
` to access the second item in the list, which is `'banana
'`. We then assign a new value `'orange
'` to this item using the assignment operator `=
`. The updated list is printed using `print("Modified List:", my_list)
`.