Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created Jul 1, 2020
Embed
What would you like to do?
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