human
Give me a Python code to select the nth element in an array.
assistant
Here is a Python code to select the nth element in an array

import numpy as np

def nth_element(array, n):
    """
    Select the nth element in an array in
    """
    return array[n]

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

# Calling the function
print((nth_element(a, 3)))

#Remember to inspect code for bugs.