From 6760be564a9b5b3f91120b02a9540a6b4c19acf6 Mon Sep 17 00:00:00 2001 From: Carlos Lara <114048858+KaarLarax@users.noreply.github.com> Date: Mon, 18 Nov 2024 14:46:07 -0600 Subject: [PATCH] Reto #1 - Python Reto #1 - Python --- .../python/KaarLarax.py" | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 "Retos/Reto #1 - EL LENGUAJE HACKER [F\303\241cil]/python/KaarLarax.py" diff --git "a/Retos/Reto #1 - EL LENGUAJE HACKER [F\303\241cil]/python/KaarLarax.py" "b/Retos/Reto #1 - EL LENGUAJE HACKER [F\303\241cil]/python/KaarLarax.py" new file mode 100644 index 0000000000..c1e4c175d3 --- /dev/null +++ "b/Retos/Reto #1 - EL LENGUAJE HACKER [F\303\241cil]/python/KaarLarax.py" @@ -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)