mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-04-23 06:07:37 +00:00
Add `.split
This commit is contained in:
parent
2bef9b9cb3
commit
92d58b7109
@ -27,13 +27,13 @@ def apply_rot13(s: str) -> str:
|
|||||||
|
|
||||||
|
|
||||||
def main() -> None:
|
def main() -> None:
|
||||||
s0 = input("Enter message: ")
|
s0 = input("Enter message: ").strip()
|
||||||
|
|
||||||
s1 = apply_rot13(s0)
|
s1 = apply_rot13(s0)
|
||||||
print("Encryption:", s1)
|
print("Encryption:", s1)
|
||||||
|
|
||||||
s2 = apply_rot13(s1)
|
s2 = apply_rot13(s1)
|
||||||
print("Decryption: ", s2)
|
print("Decryption:", s2)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user