You are viewing a single comment's thread. Return to all comments →
python simple answer:
def caesarCipher(s, k): a="abcdefghijklmnopqrstuvwxyz" return ''.join([a[(a.index(i)+k)%len(a)] if i.islower() else a[(a.index(i.lower())+k)%len(a)].upper() if i.isupper() else i for i in s])
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 →
python simple answer: