def is_sorted(liste): index = 0 while index < len(liste) - 1: a = liste[0] b = liste[1] if b < a: return False index = index + 1 return True