Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Last active December 10, 2018 15:31
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/ff69ad060802f6d26dc6271873c5f875 to your computer and use it in GitHub Desktop.
Save parzibyte/ff69ad060802f6d26dc6271873c5f875 to your computer and use it in GitHub Desktop.
ChrPython created by parzibyte - https://repl.it/@parzibyte/ChrPython
"""
Explicar chr en Python
@author parzibyte
"""
numeros = [65, 200, 66, 97, 98]
for numero in numeros:
print("El carácter que representa a {} es {}".format(numero, chr(numero)))
""""
El carácter que representa a 65 es A
El carácter que representa a 200 es È
El carácter que representa a 66 es B
El carácter que representa a 97 es a
El carácter que representa a 98 es b
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment