Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with open('myfile.txt', 'w') as f:
- f.write('This is the first line.\n')
- f.write('This is the second line.\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement