Skip to content
Permalink
Browse files
Added Print Functions
  • Loading branch information
hortonr6 committed Jul 19, 2019
1 parent 329764e commit 7dc21d2fce9f70e541ce777509279ce6f8bc2571
Showing 1 changed file with 7 additions and 0 deletions.
@@ -10,6 +10,9 @@ class Stack:
'''Pops the item at the top of the stack'''
return self.stack.pop(len(self.stack) - 1)

def printStack(self):
for item in self.stack:
print(item)

class Queue:
def __init__(self):
@@ -23,3 +26,7 @@ class Queue:
'''Pops the item at the front of the queue'''
return self.queue.pop(0)

def printQueue(self):
for item in self.queue:
print(item)

0 comments on commit 7dc21d2

Please sign in to comment.