Created
November 3, 2025 09:45
-
-
Save horvatha/941320a97ecc3e56c1d2b5de60e6ab3b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/usr/bin/python3 | |
| from pathlib import Path | |
| from string import ascii_letters | |
| fs = "🌼🌺🌷🪻🌹🥀🪷🌸🌻🍄🎂🎹" | |
| text = Path("MARTI.txt").read_text() | |
| text = text.replace(".", fs[4]).replace("\\", fs[0]).replace("?", fs[4]) | |
| chars = set(ascii_letters + "öéűáőüíóúÖÉŰÁŐÜÍÓÚ!") | |
| for ch in chars: | |
| if ch in text: | |
| text = text.replace(ch, f"{ch} ") | |
| print(text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment