#DSA-Exer-16

def find_decreasing_start(list1,start,end):
    for i in range (start,end):
        if list1[i] > list1[i+1]:
            return list1.index(list1[i+1])

list1=[1,4,7,8,9,5,4]
start=0
end=len(list1)-1
result=find_decreasing_start(list1,start,end)
print("The index position at which the increasing array starts decreasing is:",result)
45fd28817ea16274f8689a180a51569dffe7674a
<mask token>

def find_decreasing_start(list1, start, end):
    for i in range(start, end):
        if list1[i] > list1[i + 1]:
            return list1.index(list1[i + 1])


<mask token>

def find_decreasing_start(list1, start, end):
    for i in range(start, end):
        if list1[i] > list1[i + 1]:
            return list1.index(list1[i + 1])


<mask token>
print('The index position at which the increasing array starts decreasing is:',
    result)

def find_decreasing_start(list1, start, end):
    for i in range(start, end):
        if list1[i] > list1[i + 1]:
            return list1.index(list1[i + 1])


list1 = [1, 4, 7, 8, 9, 5, 4]
start = 0
end = len(list1) - 1
result = find_decreasing_start(list1, start, end)
print('The index position at which the increasing array starts decreasing is:',
    result)

#DSA-Exer-16

def find_decreasing_start(list1,start,end):
    for i in range (start,end):
        if list1[i] > list1[i+1]:
            return list1.index(list1[i+1])

list1=[1,4,7,8,9,5,4]
start=0
end=len(list1)-1
result=find_decreasing_start(list1,start,end)
print("The index position at which the increasing array starts decreasing is:",result)