friends = ["Kevin", "Karen", "Jim"]

print(friends[2]) # this prints the element with index 2. Index starts from 0
                  # if you intex -1, it will print out the last item of the list
                  # you can also use ranges such as [1:3]
                  # it can also grab everythnig after an index, [1:]
friends[1] = "Mike" # this will update the value on index 1 with a new value, called Mike


1ef20ef18d808b651b6f9432a04b303697545133
<mask token>

<mask token>
print(friends[2])
<mask token>

friends = ['Kevin', 'Karen', 'Jim']
print(friends[2])
friends[1] = 'Mike'

friends = ["Kevin", "Karen", "Jim"]

print(friends[2]) # this prints the element with index 2. Index starts from 0
                  # if you intex -1, it will print out the last item of the list
                  # you can also use ranges such as [1:3]
                  # it can also grab everythnig after an index, [1:]
friends[1] = "Mike" # this will update the value on index 1 with a new value, called Mike

