Skip to content

Instantly share code, notes, and snippets.

@coding-youtuber
Created January 11, 2021 09:25
Show Gist options
  • Save coding-youtuber/f89e8d8813f99e71ec02ab49674742d8 to your computer and use it in GitHub Desktop.
Save coding-youtuber/f89e8d8813f99e71ec02ab49674742d8 to your computer and use it in GitHub Desktop.
Pythonで逆暗号をつくる
# 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