feat: Initial commit
This commit is contained in:
14
Laboratorio10/invertLines.py
Normal file
14
Laboratorio10/invertLines.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from os import close
|
||||
|
||||
|
||||
fin = open("input.txt", "r")
|
||||
fout = open("output.txt", "w")
|
||||
|
||||
lines = reversed(fin.readlines())
|
||||
|
||||
fin.close()
|
||||
|
||||
for l in lines:
|
||||
fout.write(l.strip() + "\n")
|
||||
|
||||
fout.close()
|
||||
Reference in New Issue
Block a user