Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def encodeN(n,N,D="0123456789qwertyuiopasdfghjklzxc"):
- return (encodeN(n//N,N)+D[n%N]).lstrip("0") if n>0 else "0"
- print (encodeN(16002,32))
- ya2
- tmap = str.maketrans('qwertyuiopasdfghjklzxc', 'abcdefghijklmnopqrstuv')
- result = int(inputvalue.translate(tmap), 32)
Add Comment
Please, Sign In to add comment