def some_stack(): stack = Stack() python_list = [] for i in range(50): value = randint(0, 50) stack.custom_push(value) python_list.append(value) python_list = python_list[::-1] return stack, python_list