Develop an algorithm for a Linear Search of an unordered array in Python.
[4, 8, 15, 23]
def linear_search(arr, target):
    for i in range(len(arr)):
        if arr[i] == target:
            return i
    return -1