Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 12, 2021 02:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/6c8dd6f2c5008595d83d86e3643d64c3 to your computer and use it in GitHub Desktop.
Save parzibyte/6c8dd6f2c5008595d83d86e3643d64c3 to your computer and use it in GitHub Desktop.
def binario_a_ascii(binario):
# Convertir binario a decimal
valor = int(binario, 2)
# Convertir el decimal a su representación ASCII
return chr(valor)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment