image
image
image

Manipulating Elements in a List using the assignment operator

image

Items in a list can be changed meaning lists are mutable.

Start IDLE.

Navigate to the File menu and click New Window.

Type the following:

list_yours=[4,8,5,2,1]

list_yours[1]=6   

print(list_yours)    #The output will be [4,6,5,2,1]