Advertisement
kced20

Python Write to file

Feb 22nd, 2019
420
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. # this line will open or create a text document called female.txt
  2. out = open("female.txt","w")
  3. # this line below will write Hello to female.txt
  4. out.write("Hello")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement