Skip to content

Commit

Permalink
Reto mouredev#1 - Python
Browse files Browse the repository at this point in the history
Reto mouredev#1 - Python
  • Loading branch information
KaarLarax authored Nov 18, 2024
1 parent 581a287 commit 6760be5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Retos/Reto #1 - EL LENGUAJE HACKER [Fácil]/python/KaarLarax.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
print("Codificador a lenguaje Leet")
palabra = input("Ingrese la frase: ")
palabra = palabra.upper()
traductor = {'A': "4", 'B': "I3", 'C': "[", 'D': ")", 'E': "3",
'F': "|=", 'G': "&", 'H': "#", 'I': "1", 'J': ",_|",
'K': ">|", 'L': "1", 'M': "/\\/\\", 'N': "^/", 'O': "0",
'P': "|*", 'Q': "(_,)", 'R': "I2", 'S': "5", 'T': "7",
'U': "(_)", 'V': "\\/", 'W': "\\/\\/", 'X': "><", 'Y': "j", 'Z': "2",
'1': "L", '2': "R", '3': "E", '4': "A", '5': "b", '7': "T", '8': "B",
'9': "g", '0': "o"}
traducion = ""

for letra in palabra:
traducion += traductor.get(letra, letra)
print("Frase codificada: " + traducion)

0 comments on commit 6760be5

Please sign in to comment.