# pop()

*noun*

say it: **“POP”** **/pɑp/**

A list method that removes an item and hands it back: the last item with no argument, or the item at the position given.

## What does `pop()` do?

`pop()` removes an item from a list and gives it back. With no argument it takes the last item.

```python
orders = ["latte", "tea", "mocha"]
next_up = orders.pop()
print(next_up)  # mocha
print(orders)   # ['latte', 'tea']
```

## In a sentence

- “**pop()** took the newest order off the end of the list and gave it to the barista.”
- “tasks.**pop**(0) removes and returns the first task.”

Level: Apprentice · [More Python terms at this level](https://www.ask-codey.com/glossary?category=python&level=2)

Updated: November 19, 2026

## In other subjects

- [pop() in JavaScript](https://www.ask-codey.com/glossary/pop-javascript)

Source: https://www.ask-codey.com/glossary/pop
