Guest User

Untitled

a guest
Jul 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. def getSmallestNum(inp):
  2. a = inp
  3. b = sorted(a)
  4. for i,n in enumerate(b):
  5. if n!= '0':
  6. tmp = b.pop(i)
  7. break
  8. return str(tmp) + ''.join(b)
Add Comment
Please, Sign In to add comment