Created
December 5, 2013 19:14
-
-
Save hyonschu/7811459 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def is_sorted(ary): | |
count = 0 | |
while count < len(ary): | |
if ary[count] <= ary[count+1]: | |
count += 1 | |
else: | |
return False | |
return True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment