Last active
December 10, 2018 15:31
-
-
Save parzibyte/ff69ad060802f6d26dc6271873c5f875 to your computer and use it in GitHub Desktop.
ChrPython created by parzibyte - https://repl.it/@parzibyte/ChrPython
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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