Log in or register to post comments The pop function removes and returns the last object (or obj) from the list. Here -1 represent last element of the list. Below example will return 5. my_list = [1, 2, 3, 4, 5] last_element = my_list.pop(-1) print(last_element) Tags Python Data Structure Interview Questions Python Interview Questions