Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. def iSort(x):
  2.     currentNum = 0
  3.     for i in range(2, len(x)):
  4.         currentNum = x[i]
  5.         pos = i
  6.         for b in range(1, len(x)):
  7.             if currentNum > x[b]:
  8.                 pos = b
  9.             x.insert(b, currentNum)
  10.             del x[i + 1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement