Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 4
- 2
- 1
- 3
- 2
- 1
- 7
- 4
- 2
- myfile = open(file1)
- myfile2 = open(file2)
- for line in file1:
- p = int(line) + int(myfile2.readlines())
- f = open(newFile,"w")
- f.write(p)
- file1.close()
- file2.close()
- f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement