human
Give me a Python program to pop a node off a stack.
assistant
Here is a Python program to pop a node off a stack

import random

def pop(stack):
    """
        Pop a node off a stack
    :param stack:
    :return:
    """
    return stack.pop()

# Enter the stack
stack = [1, 2, 3, 4, 5]

# Calling the function
print((pop(stack)))

#Example Output
# 5

#Remember to inspect code for bugs.