the topic is writing/reading text files, but i got this simple question. how do i make this program so it will look like this: http://i39.tinypic.com/5554wi.jpg i can't figure it out.
- to make it keep looping and asking "enter your name or break to exit" continue the question until the user enters break.
try my program and be apreciated is neone can help me fill in the missing code. ty
# Anna Huang
# Programming Assignment 16
blank=""
while not blank:
y = open("pa16names.txt", "w")
x = raw_input("Enter your name or break to exit:")
y.writelines(x)
y. close()
y = open ("pa16names.txt", "r")
print "The names you've entered into the text file are:", y.read()
y.close()