Created
October 19, 2015 07:23
-
-
Save accessnash/6b002ae6b230ffdac462 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
"""Encode a string input""" | |
text = input("Enter a sentence: ") | |
code_char = '' | |
for letter in text: | |
code_char += chr(ord(letter) + 1) | |
lst = list(code_char) | |
secretcode = reversed(lst) | |
sec_code = '' | |
for i in secretcode: | |
sec_code += i | |
print(sec_code) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment