Human: Give me a Python code to remove last item from array. Assistant: 
Here is a Python code to remove last item from array

import random

def remove_last_item(array):
    """Removes the last item from the array.

    :param array: The array to be removed
    """
    array.pop()

# Enter the array
array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

# Calling the function
print((remove_last_item(array)))

#Example Output
# None

#Remember to inspect code for bugs.