arr = [4, 8, 24, 10, 12, 18, 19]


def revArray(arr):
    last = len(arr) - 1
    first = 0
    # while first < last:
    #     arr[first], arr[last] = arr[last], arr[first]
    #     revArray(arr, first+1, last-1)
    #     return arr
    while first < last:
        arr[first], arr[last] = arr[last], arr[first]
        first += 1
        last -= 1
    return arr

print(revArray(arr))


bfd5a62d11919dd818d558601fb5092567aa0e8c
<mask token>

<mask token>


def revArray(arr):
    last = len(arr) - 1
    first = 0
    while first < last:
        arr[first], arr[last] = arr[last], arr[first]
        first += 1
        last -= 1
    return arr


<mask token>

<mask token>


def revArray(arr):
    last = len(arr) - 1
    first = 0
    while first < last:
        arr[first], arr[last] = arr[last], arr[first]
        first += 1
        last -= 1
    return arr


print(revArray(arr))

arr = [4, 8, 24, 10, 12, 18, 19]


def revArray(arr):
    last = len(arr) - 1
    first = 0
    while first < last:
        arr[first], arr[last] = arr[last], arr[first]
        first += 1
        last -= 1
    return arr


print(revArray(arr))

arr = [4, 8, 24, 10, 12, 18, 19]


def revArray(arr):
    last = len(arr) - 1
    first = 0
    # while first < last:
    #     arr[first], arr[last] = arr[last], arr[first]
    #     revArray(arr, first+1, last-1)
    #     return arr
    while first < last:
        arr[first], arr[last] = arr[last], arr[first]
        first += 1
        last -= 1
    return arr

print(revArray(arr))

