A stack is a structure where the last element added is the first one removed (LIFO, last in first out). You push and pop at a single end. It is used for undoing actions, evaluating expressions, depth-first traversal and managing function calls.
Example
pile = []
pile.append('a')
pile.append('b')
pile.pop() # 'b'