Answers for "how to get the alphabet order number in python"

1

how to translate to string to different alphabet python

string = 'some string'

normal_alphabet = 'abcdefghijklmnopqrstuvwxyz.'
my_alphabet = 'ijklmnopqrstuvwxyz.abcdefgh'

translation = string.maketrans(normal_alphabet, my_alphabet)

print(string.translate(translation))
Posted by: Guest on December-29-2020

Code answers related to "how to get the alphabet order number in python"

Python Answers by Framework

Browse Popular Code Answers by Language