Lab Stack
This lab is to be done on your own.
Create a python program using a list data structure that does the following:
- Comments at the top of the module with your name, date, and description. 1 point.
- Prompt the user to do a push, a pop, or exit. 1 point.
- If doing a push, prompt the user to enter their item to push on to the stack. 1point.
- If doing a pop, pop the item off the top of the stack and print it. 1 point.
- If you attempt to do a pop to an already empty stack, print "Stack is Empty". 1 point.
- Create a helper function that prints the stack for you to the screen. Call it for both a push and a pop.
- Printing function should print [bottom] and <-top to denote the bottom and top of the stack. 1 point.
- Printing function should print all the items on the stack. 4 points.
Submit this program two ways:
- As .py code file.
- As a screenshot in .jpg or .png format showing the run below as output.
The image below shows an example run of the program.
You must do this exact run and it must be turned in as your submitted screenshot.
The image below shows another example run of the program.