classmates = ['tom','jack','peter']
print(classmates[-1])

#add in the end
classmates.append('adam')
print(classmates)

#delete the end
classmates.pop()
print(classmates)

tpl = ('1','2', ['3','4'])
print(tpl)
tpl[2][0] = '9'
print(tpl)
7257e1bc1f66a53915245ad221620a82230dbae7
<mask token>

<mask token>
print(classmates[-1])
classmates.append('adam')
print(classmates)
classmates.pop()
print(classmates)
<mask token>
print(tpl)
<mask token>
print(tpl)

classmates = ['tom', 'jack', 'peter']
print(classmates[-1])
classmates.append('adam')
print(classmates)
classmates.pop()
print(classmates)
tpl = '1', '2', ['3', '4']
print(tpl)
tpl[2][0] = '9'
print(tpl)

classmates = ['tom','jack','peter']
print(classmates[-1])

#add in the end
classmates.append('adam')
print(classmates)

#delete the end
classmates.pop()
print(classmates)

tpl = ('1','2', ['3','4'])
print(tpl)
tpl[2][0] = '9'
print(tpl)