Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. with open('data1.txt', 'w', encoding='latin_1') as output:
  2. with open('data.txt', 'r', encoding='latin_1') as input:
  3. for line in input:
  4. new_line = line+','
  5. output.write(new_line)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement