Answers for "python string replace letters with numbers"

0

python string replace letters with numbers

from string import ascii_letters

code = code = "1111702460830000Lu05"
code = "".join([str(ascii_letters.index(c)) if c in ascii_letters else c for c in code])
print(code)
Posted by: Guest on December-06-2020

Code answers related to "python string replace letters with numbers"

Python Answers by Framework

Browse Popular Code Answers by Language