aboutsummaryrefslogtreecommitdiff
path: root/challenge-139/lubos-kolouch/python/ch-1.py
blob: ba5233b9c6c91ee34ebbfd5b97ab6e4a1dc04919 (plain)
1
2
3
4
5
6
7
def is_jort_sorted(what):

    return what == sorted(what)


assert is_jort_sorted([1, 2, 3, 4, 5]) == 1
assert is_jort_sorted([1, 3, 2, 4, 5]) == 0