Algorithms and Data Structures/Coding Practices

AlgoExpert Cipher Encryptor

brightlightkim 2022. 7. 19. 09:19

def caesarCipherEncryptor(string, key):
    return ''.join([chr((ord(c)-97+key)%26+97) for c in string])