student question

John jlsphar at gmail.com
Fri Jan 7 21:42:45 EST 2011


>>> q_file = open(questions_location) #opens the document successfully
>>> for line in q_file:
		print line

# prints document successfully
>>> line
# prints last line of document
>>> for line in q_file:
		print line # prints nothing

...why does it print nothing?



More information about the Python-list mailing list