Skip to content

Commit

Permalink
Reto #15 - Python
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoatrs committed Aug 14, 2023
1 parent 0a8f641 commit 78bdbcb
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions Retos/Reto #15 - AUREBESH [Fácil]/python/marcoatrs.py
Original file line number Diff line number Diff line change
@@ -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"))

0 comments on commit 78bdbcb

Please sign in to comment.