in this examplethe application creates list and variable to determine the maximum stack size stacks normally have specific size range this is admittedly really small stackbut it serves well for the example' needs stacks work by pushing value onto the top of the stack and popping values back off the top of the stack the push(and pop(functions perform these two tasks the code adds displaystack(to make it easier to see the stack content as needed the remaining code exercises the stack (demonstrates its functionalityby pushing values onto it and then removing them there are four main exercise sections that test stack functionality choose runrun module you see python shell window open the application fills the stack with information and then displays it onscreenas shown in figure - in this case is at the top of the stack because it' the last value added figure - stack pushes values one on top of the other press enter the application attempts to push another value onto the stack howeverthe stack is fullso the task failsas shown in figure - press enter the application pops value from the top of the stack remember that is the top of the stackso that' the value that is missing in figure -