human
get every nth element from array.
assistant
Here is a Python function to get every nth element from array

import numpy as np

def get_every_nth_element(array, n):
    """
    Returns every nth element from array
    :param array:
    :param n:
    :return:
    """
    return array[::n]

# Enter the array
array = np.arange(10)

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

#Example Output
# [0 2 4 6 8]

#Remember to inspect code for bugs.