[Tutor] lists

Bernardo Rebelo bernardoaugustorebelo11 at gmail.com
Fri Nov 27 14:54:25 EST 2020


Hi I would like to know how to check if an element in a list is greater
than the next element on the same list like this

[5,4,3,2,1]

if 5 > 4 > 3 > 2 > 1
return True

in an example like this one [5,4,5,2], it would give False.

best regards,


More information about the Tutor mailing list