From 78bdbcbeda0bca99f56607d32f38b6415a0508ae Mon Sep 17 00:00:00 2001 From: Marco Torres Date: Mon, 14 Aug 2023 16:17:14 -0700 Subject: [PATCH] Reto #15 - Python --- .../python/marcoatrs.py" | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 "Retos/Reto #15 - AUREBESH [F\303\241cil]/python/marcoatrs.py" diff --git "a/Retos/Reto #15 - AUREBESH [F\303\241cil]/python/marcoatrs.py" "b/Retos/Reto #15 - AUREBESH [F\303\241cil]/python/marcoatrs.py" new file mode 100644 index 0000000000..832f21a8fd --- /dev/null +++ "b/Retos/Reto #15 - AUREBESH [F\303\241cil]/python/marcoatrs.py" @@ -0,0 +1,38 @@ +aurebesh = { + "a": "aurek", + "b": "besh", + "c": "cresh", + "d": "dorn", + "e": "esk", + "f": "forn", + "g": "grek", + "h": "herf", + "i": "isk", + "j": "jenth", + "k": "krill", + "l": "leth", + "m": "mern", + "n": "nern", + "o": "osk", + "p": "peth", + "q": "qek", + "r": "resh", + "s": "senth", + "t": "trill", + "u": "usk", + "v": "vev", + "w": "wesk", + "x": "xesh", + "y": "yirt", + "z": "zerek" +} + + +def spanish2aurebesh(text: str): + aurebesh_chars = [] + for t in text: + aurebesh_chars.append(aurebesh.get(t, t)) + return "".join(aurebesh_chars) + + +print(spanish2aurebesh("Hola que tal"))