function push(stack, value):
   stack.append(value)  # add to the top


 function pop(stack):
   if is_empty(stack):
      report an unsupported case
   return stack.remove_last() # remove from the top -- LIFO
