Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
py3.10+ itertools.pairwise solution in Clear category for Ascending List by Phil15
from itertools import pairwise, starmap # pairwise requires python 3.10+
from operator import lt
is_ascending = lambda items: all(starmap(lt, pairwise(items)))
Dec. 19, 2021
Comments: