# try out the Python stack functions

# TODO: create a new empty stack
stacks = []

# TODO: push items onto the stack
stacks.append(1)
stacks.append(2)
stacks.append(3)
stacks.append(4)
stacks.append(5)

# TODO: print the stack contents
print(stacks)

# TODO: pop an item off the stack
x = stacks.pop()
print(x)
print(stacks)
print(stacks[2])
