Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
native_ascending_list solution in Clear category for Ascending List by Jon_Red
def is_ascending(items:[int])->bool:
return all(items[x]>items[x-1]for x in range(1,len(items)))
if __name__=='__main__':
# self-checks
assert is_ascending([-5,10,99,123456])==True
assert is_ascending([99])==True
assert is_ascending([4,5,6,7,3,7,9])==False
assert is_ascending([])==True
assert is_ascending([1,1,1,1])==False
Aug. 1, 2020