Created
January 1, 2019 00:42
-
-
Save parzibyte/bd76f047b6ef8ec8bfe31ff7f838f79a to your computer and use it in GitHub Desktop.
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
""" | |
2 formas de leer una cadena carácter por carácter | |
en Python 3: con y sin índice | |
@author parzibyte | |
""" | |
cadena = "¡Hola, mundo!" | |
# Método 1, sin índice | |
for caracter in cadena: | |
print(caracter) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Como puedo escribir en vertical