Advertisement
182days

Text File Writer

May 10th, 2016
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. input1 = input("write something interesting here")
  2. input2 = input("write something else...")
  3. file = open("document.txt", "w")
  4. file.write(input1 + "\n")
  5. file.write(input2 + "\n")
  6. file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement