Edit & Run »
The pop method returnes the removed item.
Try it