Answers for "replace with alphabet position 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 "replace with alphabet position python"

Python Answers by Framework

Browse Popular Code Answers by Language