#Example of using pop() in Python
my_list = [10, 20, 30, 40, 50]
print('Original list: ', my_list)

#Remove last item
removed_item = my_list.pop()
print('After pop(): ' , my_list)