LinuxAIO

Ejercicio 9.9 y 9.10

Jun 24th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. Lista = ["ejemplo.txt", "Saludos.txt", "ejercicio1.txt"]
  2. #x = 0
  3. #while (x < 3):
  4. #    with open(Lista[x], "r") as archivo:
  5. #        for l in archivo.readlines():
  6. #            print(l)
  7. #    x += 1
  8. with open("guardar.txt", "w") as guardar:
  9.     for archivos in Lista:
  10.         print(open(archivos).readlines())
  11.         x = archivos.readlines()
  12.         guardar.write(x) #Parte del ejercicio 9.10
Add Comment
Please, Sign In to add comment