Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created January 1, 2019 00:42
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/bd76f047b6ef8ec8bfe31ff7f838f79a to your computer and use it in GitHub Desktop.
Save parzibyte/bd76f047b6ef8ec8bfe31ff7f838f79a to your computer and use it in GitHub Desktop.
"""
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)
@herbener2
Copy link

Como puedo escribir en vertical

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