Example #1
0
testStack.Push(5)
print(testStack.items)
testStack.Push(76)
print(testStack.items)

# .Pop()
print(testStack.Pop())

# .Contains()
print(testStack.Contains(5))
print(testStack.Contains(76))
print()


#--------------------QUEUE METHODS--------------------#
testQueue = Queue()
# .Append()
testQueue.Append("Dog")
testQueue.Append("Cat")
testQueue.Append("Turtle")
print(testQueue.items)

# .Pop()
print(testQueue.Pop())
print(testQueue.items)

# .Contains()
print(testQueue.Contains("Cat"))
print(testQueue.Contains("Lizard"))
print()