Skip to content

Instantly share code, notes, and snippets.

@hyonschu
Created December 5, 2013 19:14
Show Gist options
  • Save hyonschu/7811459 to your computer and use it in GitHub Desktop.
Save hyonschu/7811459 to your computer and use it in GitHub Desktop.
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