Question: Hi, I have this python assignment and I was wondering if you could help me. I just started Python programming and it's still a foreign
Hi, I have this python assignment and I was wondering if you could help me. I just started Python programming and it's still a foreign language to me. I was wondering if you could solve my problem. This is what I need to solve:
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.
Prompt the user to do a push, a pop, or exit.
If doing a push, prompt the user to enter their item to push on to the stack.
If doing a pop, pop the item off the top of the stack and print it.
If you attempt to do a pop to an already empty stack, print "Stack is Empty".
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.
Printing function should print all the items on the stack.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
