Created
September 4, 2016 17:03
-
-
Save APIUM/3be9b72632ff6b2710343116690d4ceb to your computer and use it in GitHub Desktop.
This file contains 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
plain = list('abcdefghijklmnopqrstuvwxyz .!@#$%^&*()_+|~,/<>?~|\'\:\=1234567890') | |
cipher = list('ZYXWVUTSRQPONMLKJIHGFEDCBA .!@#$%^&*()_+|~,/<>?~|\'\:\=1234567890') | |
answer = [] | |
atBash = input('What do you want to encode? => ').lower() | |
for i in atBash: | |
index = plain.index(i) | |
answer.append(cipher[int(index)]) | |
print(''.join(answer)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment