ALTERNATIVE STACK IMPLEMENTATION # Stack Creation def create stack(): stack list () return atack #declaring an empty list Checking for empty stack def Isempty (stack): return len(stack)=0 #Inserting items into the stack def push (stack, n): atack append(n) print("pushed item:+ n) # Removal of an element from the stack def pop (atack) it (Taempty (stacki): return "stack is empty" return stack.pop() Displaying the stack elements def show (atack) print("The stack elements are:") for & in atacki Print (1) atack create stack () pushistack, ate (10)) guab (atack, (2011 push(stack. (30)) Euabistack, at (401) print("popped item: "+ abow (stack) Popistacki