Last active
March 10, 2022 21:14
-
-
Save techieji/16bf4492f04f0f575ba1d39a81dbfacc 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
# Simple ceasar cipher (1 line of logic) | |
from string import ascii_uppercase as au | |
s=int(input("Shift: ")) | |
print(''.join(map(dict(zip(au+' ',au[-s:]+au[:-s]+' ')).get,input("Text: ").upper()))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment