Created
February 23, 2022 23:36
-
-
Save sbassi/4dc382b5d405cf2b92e141a6a8ba5c5a 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
f_in = 'entrada.txt' | |
f_out = 'salida.txt' | |
with open(f_in) as infh: | |
with open(f_out, 'w') as outfh: | |
for line in infh: | |
if line != '\n': | |
outfh.write(line) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment