List1.pop python code example Example 1: .pop python array.pop(2) # removes element at index 2 Example 2: list pop python list.pop(index)