Skip to main content
deleted 8 characters in body
Source Link
xenia
  • 8.2k
  • 2
  • 29
  • 59

Python, 5446 bytes

lambda x:"".join("0"*(j<'j')+str"%02i"%(ord(j)-96)for j in x) 

Pretty straightforward. Try it on repl.it!Try it on repl.it!

Python, 54 bytes

lambda x:"".join("0"*(j<'j')+str(ord(j)-96)for j in x) 

Pretty straightforward. Try it on repl.it!

Python, 46 bytes

lambda x:"".join("%02i"%(ord(j)-96)for j in x) 

Pretty straightforward. Try it on repl.it!

Source Link
xenia
  • 8.2k
  • 2
  • 29
  • 59

Python, 54 bytes

lambda x:"".join("0"*(j<'j')+str(ord(j)-96)for j in x) 

Pretty straightforward. Try it on repl.it!