Using this program to take out spaces, punctuation, and make letters lower case...
def pre_process(s):
s= s.replace("'","")
s= s.replace('.','')
s= s.lower()
s= s.replace(" ","")
return s
How can I encrypt a message (s) so that the letters each shift by an amount equal to the corresponding letter in the alphabet? ex) 'm' shifted 5 becomes 'r' but 'w' shifted 5 becomes 'b'?