B 2.2.3 Worksheet Python
Name: _________________________ This worksheet uses a standard Python list as a stack, which has the following methods: Instructions: For each problem, trace the operations in the order given. Sketch the final state of the stack s. Clearly indicate the top of the stack. 1. Basic Trace A new, empty stack s is created. Final Stack: (Sketch here) 2. Trace with peek A new, empty stack s is created. What is printed to the...