Generate a Python code which calls a function to print the following array?
[1,3,7,9,10]
arr = [1,3,7,9,10]

def print_array(arr):
    '''This function prints the elements of an array'''
    for ele in arr:
        print(ele)

print_array(arr)