def Crypt str step return join chr ord step-97 26 97 for in str Crypt

1
2
3
4
5
>>> def Crypt(str, step=3):
return ''.join([chr((ord(i)+step-97)%26+97) for i in str])
>>> Crypt('test')
'whvw'