04pallav
9/11/2017 - 10:22 PM

Checking if list is stricly ascending

Checking if list is stricly ascending

i=1                             #### initialize with 1 to prevent edge case
while i < len(result):          #### condition of traversing the list with while # remember
    if result[i]<=result[i-1]:
        return False
    i+=1                        #### do not forget !!! to increment