How would I write a function that takes a list as an argument and verifies whether or not the list is sorted?
I want it to return true if sorted and false otherwise. For example:
>>> is_sorted([1, 5, 8, 10])
True
>>> is_sorted([4, 1, 7, 8])
False
However, I'm unsure of how to do this with any kind of list at all