Program_8 Compiler
Program_8 Compiler
class Stack:
def __init__(self):
self.items = []
self.items.append(item)
def pop(self):
def peek(self):
def display(self):
return self.items
stack = Stack()
stack.push(1)
stack.push(2)
stack.push(3)
Popped item: 3
Popped item: 2
Popped item: 1