1# Python pop() equivalent
2mylist = ['a', 'b', 'c', 'd', 'e']
3# remove 'b'
4mylist = mylist[:1] + mylist[1+1:]
5# return ['a', 'c', 'd', 'e']
6A = 0
7A, mylist = A + 9, mylist[:1] + mylist[1+1:]
8# return 9 ['a', 'd', 'e']
1# removes last element of list unless parameter is given
2l1 = [1,2,3,4,5]
3print(l1.pop()) # returns [1, 2, 3, 4]
4print(l1.pop(2)) # returns [1, 2, 4, 5] removes element at given index