Skip to content

Commit

Permalink
Merge pull request #4643 from marcoatrs/main
Browse files Browse the repository at this point in the history
Reto #15 - Python
  • Loading branch information
kontroldev authored Aug 15, 2023
2 parents 045e20c + 78bdbcb commit 61ee39d
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 61ee39d

Please sign in to comment.