Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 12, 2021 02:10
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/7a9a2a42accd746eef2c52ddb8cdbcb3 to your computer and use it in GitHub Desktop.
Save parzibyte/7a9a2a42accd746eef2c52ddb8cdbcb3 to your computer and use it in GitHub Desktop.
def ascii_a_binario(letra):
# Extraer su valor entero
valor = ord(letra)
# Convertirlo a binario
return "{0:08b}".format(valor)
@mace25
Copy link

mace25 commented Oct 4, 2021

``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment