Concept

pop([i])

The built-in function pop will remove the item at the position i and return that value. If no index is provided, list.pop() will remove and return the last element of the list.

Note: square brackets around i signify that the parameter is optional.

Image 0

0

1

Updated 2021-06-01

Tags

Python Programming Language

Data Science