Name

.pop()

Examples
a = [1, 2, 3, 4]
print(a)
a.pop()    # Removes the last element of the list.
print(a) # Prints: [1, 2, 3]
a.pop(1)   # Remove the element at index 1 of the list. 
print(a) # Prints: [1, 3]
Description
Syntax
a.pop()
a.pop(i)
Parameters
a
i
Related .insert()
.append()
.reverse()
.index()
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License