Possible Duplicate:
Pythonic way to check if a list is sorted or not
In python, how do I test whether a list of numbers is already sorted or not?
some_list == sorted(some_list)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With