I'm coding a little python program for ROT13.
If you don't know what it means, it means it will replace the letter of the alphabet to 13th letter in front of it therefore 'a' would become 'n'.
A user will ask for an input and I shall replace each character in the sentence to the 13th letter in front.
This means I need to replace each character, now who would I do that?
I tried importing the re function but It didn't work. This is what I got so far.
import re
Alpha = input("Input the word you would like translated")
Alpha = re.sub('[abcdefghijklmnopqrstuvwxyz]', 'nopqrstuvwxyzabcdefghijklm',
Alpha)
print(Alpha)
Help would be very much appreciated.