This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
NG_2022_Stanislav_Mykhailenko/Lesson_2/We know/dumb_decryptor.py

12 lines
314 B
Python
Raw Normal View History

2022-10-27 15:38:13 +00:00
# Lesson 2 Task %*f#ncA0#>?: ROT13 encryption
# Author: Stanislav Mykhailenko
# License: Unlicense
# Return codes:
# 0 - OK
rot13 = str.maketrans('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz',
'NOPQRSTUVWXYZABCDEFGHIJKLMnopqrstuvwxyzabcdefghijklm')
2022-10-27 15:38:13 +00:00
print(input("Enter message: ").translate(rot13))