You are viewing a single comment's thread. Return to all comments →
def caesarCipher(s, k): encripted='' for i in s: if i.isalpha(): if i.islower(): encripted+=chr((ord(i)-ord('a')+k)%26+ord('a')) elif i.isupper(): encripted+=chr((ord(i)-ord('A')+k)%26+ord('A')) else: encripted+=i return encripted
Seems like cookies are disabled on this browser, please enable them to open this website
Caesar Cipher
You are viewing a single comment's thread. Return to all comments →