human
Write me a Python code to get the last n from the array.
assistant
Here is a Python code to get the last n from an array

import numpy as np

def get_last_n(array, n):
    """
    >>> array = [1, 2, 3, 4, 5, 6, 7, 8, 9]
    >>> get_last_n(array, 3)
    [6, 7, 8]
    """
    return array[-n:]

# Enter the array
array = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9])

# Calling the function
last_n = get_last_n(array, 3)

# Print the last n
print(last_n)

#Example Output
# [7 8 9]

#Remember to inspect code for bugs.