The pop() method removes the item at the given index from the list and returns the removed item. You can also give an negative index of element to be removed.
Example:
my_list = ["comp sci", "physics", "elec engr", "philosophy"]
print("Removed item: ", my_list.pop(2))
print("Updated list: ", my_list)
Output:
Removed item: elec engr
Updated list: ['comp sci', 'physics', 'philosophy']