human
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 random

def nth_element(array, n):
    """
    Select the nth element in an array.

    :param array: input array
    :type array : list
    :param n: input number
    :type n : int
    :return: nth element in an array
    """
    return array[n]

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

# Enter the number
n = 3

# Calling the function
print((nth_element(array, n)))

#Remember to inspect code for bugs.