Question: 
Write a function to check whether a specified list is sorted or not.


Model's Code:
def issort_list(lst):
    return all(lst[i] <= lst[i + 1] for i in range(len(lst) - 1))



Sample Correct Code:
def issort_list(list1):
    result = all(list1[i] <= list1[i+1] for i in range(len(list1)-1))
    return result


Asserts:
assert issort_list([1,2,4,6,8,10,12,14,16,17])==True
assert issort_list([1, 2, 4, 6, 8, 10, 12, 14, 20, 17])==False
assert issort_list([1, 2, 4, 6, 8, 10,15,14,20])==False


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 567 of 974: 421/567 (74.25044091710758%): success