Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def line_trim(s):
- return s.split()[0]
- f = open('in.txt','r')
- g = open('out.txt','w')
- for i in f.readlines():
- g.write(line_trim(i)+'\n')
- f.close()
- g.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement