Created
August 22, 2021 07:28
-
-
Save alpden550/f2d4212125dcd7d2d4c2d4fa95546b18 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from string import ascii_letters as letters | |
def make_caesar(message: str, key: int) -> str: | |
return message.translate(str.maketrans(letters, letters[key:] + letters[:key])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment