(base) ~$ python Python 3.9.9 | packaged by conda-forge | (main, Dec 20 2021, 02:38:53) [Clang 11.1.0 ] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> stack = [3,4,5] >>> stack.pop() 5 >>> stack.pop() 4 >>> stack.pop() 3 >>> stack [] >>> stack.pop() Traceback (most recent call last): File "", line 1, in IndexError: pop from empty list >>>