Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #basic user survey that writes to a file
- x = input("what is your name?")
- y = input("what pet do you have?")
- myobj=open("results.txt","a")
- myobj.write(x + " " + y + "\n")
- myobj.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement