Solve a coding challenge focused on data structures: how would you implement a stack or a queue?
Implement a stack using a Python list and process the supplied operations in order. Return the result of each pop and peek; return None when either operation is applied to an empty stack.
Function signature: def process_stack(operations):
def process_stack(operations):