Human: return range of array. Assistant: 
Here is a Python code to return range of arrays

import numpy as np

def range_of_array(a):
    """Return range of array."""
    return list(range(len(a)))

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

# Calling the function
print((range_of_array(a)))

#Example Output
# [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

#Remember to inspect code for bugs.