human
Python function to select the nth element in an array.
assistant
Here is a Python function to select the nth element in an array

import numpy as np

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

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

# Calling the function
print((nth(array, 2)))

#Example Output
# 3

#Remember to inspect code for bugs.