1# Python list method pop() removes
2# and returns last object or obj from the list.
3# .pop() last element .pop(0) first element
4
5my_list = [123, 'Add', 'Grepper', 'Answer'];
6print "Pop default: ", my_list.pop()
7> Pop default: Answer
8# List updated to [123, 'Add', 'Grepper']
9print "Pop index: ", my_list.pop(1)
10> Pop index: Add
11# List updated to [123, 'Grepper']