Skip to content

Instantly share code, notes, and snippets.

Created March 12, 2021 02:10
What would you like to do?
def ascii_a_binario(letra):
# Extraer su valor entero
valor = ord(letra)
# Convertirlo a binario
return "{0:08b}".format(valor)
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