Create a program that takes a numerical array and returns a reversed array in Python.
[1,2,3,4,5]
def reverse_array(array):
    reversed_array = array[::-1]
    return reversed_array

reversed_array = reverse_array([1,2,3,4,5])
print(reversed_array)