yazdmich

Untitled

May 16th, 2014
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. while a != sorted(a):
  2.     for x in range(0, len(a)):
  3.         if (x+1==len(a)+1) or (a[x]<a[x+1]):
  4.             pass
  5.     else:
  6.             a[x],a[x+1]=a[x+1],a[x]
Advertisement
Add Comment
Please, Sign In to add comment