Created
January 11, 2021 09:25
-
-
Save coding-youtuber/f89e8d8813f99e71ec02ab49674742d8 to your computer and use it in GitHub Desktop.
Pythonで逆暗号をつくる
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
# message = input() | |
message = "Hello World" | |
# message = "Python is an interpreted, high-level and general-purpose programming language. Python's design philosophy emphasizes code readability with its notable use of significant whitespace. " | |
translated = "" | |
# translated = '' | |
i = len(message) - 1 | |
while i >= 0: | |
translated = translated + message[i] | |
# print("i:{} message[i]:{} translated:{}".format(i, message[i], translated)) | |
i = i - 1 | |
print(translated) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment