Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
 
PREVIOUS NEXT
Tagged: #python #string #replace #letters #numbers
ADD COMMENT
Topic
Name
5+3 =