Created
June 10, 2018 20:40
-
-
Save Fhernd/5b44e61bb22cec8d03b535ba0417b030 to your computer and use it in GitHub Desktop.
Recorrido manual de un elemento iterable. OrtizOL.
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
# -*- coding: utf-8 -*- | |
with open('archivo.txt') as f: | |
try: | |
while True: | |
linea = next(f) | |
print(linea, end='') | |
except StopIteration: | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment