Guest User

Untitled

a guest
Dec 11th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. def encodeN(n,N,D="0123456789qwertyuiopasdfghjklzxc"):
  2. return (encodeN(n//N,N)+D[n%N]).lstrip("0") if n>0 else "0"
  3.  
  4. print (encodeN(16002,32))
  5.  
  6. ya2
  7.  
  8. tmap = str.maketrans('qwertyuiopasdfghjklzxc', 'abcdefghijklmnopqrstuv')
  9. result = int(inputvalue.translate(tmap), 32)
Add Comment
Please, Sign In to add comment