-
-
Save parzibyte/327fe2efe7a4d4f41ef5c081fdb7b227 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def decodificar(mensaje): | |
numeros = mensaje.split(",") | |
decodificado = "" | |
for numero_binario in numeros: | |
numero_decimal = int(numero_binario, 2) | |
letra = chr(numero_decimal) | |
decodificado += letra | |
return decodificado |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment