Complete the code to add an element to the top of the stack.
stack.[1](element)The push operation adds an element to the top of the stack.
Complete the code to remove the top element from the stack.
top_element = stack.[1]()The pop operation removes and returns the top element of the stack.
Fix the error in the code to view the top element without removing it.
top_element = stack.[1]()The peek operation returns the top element without removing it from the stack.
Fill both blanks to add an element and then view the top element.
stack.[1](new_item) top = stack.[2]()
First, push adds the new item to the stack. Then, peek shows the top element without removing it.
Fill all three blanks to push an element, pop the top, and then peek at the new top.
stack.[1](item) popped = stack.[2]() current_top = stack.[3]()
First, push adds the item. Then, pop removes the top element. Finally, peek shows the new top element.
