Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. 4
  2. 2
  3. 1
  4.  
  5. 3
  6. 2
  7. 1
  8.  
  9. 7
  10. 4
  11. 2
  12.  
  13. myfile = open(file1)
  14. myfile2 = open(file2)
  15. for line in file1:
  16. p = int(line) + int(myfile2.readlines())
  17. f = open(newFile,"w")
  18. f.write(p)
  19. file1.close()
  20. file2.close()
  21. f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement