Re: student question

2011-01-08 Thread Peter Pearson
On Fri, 7 Jan 2011 18:42:45 -0800 (PST), John wrote: 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: > pr

Re: student question

2011-01-07 Thread John
On Jan 7, 6:47 pm, Corey Richardson wrote: > On 01/07/2011 09:42 PM, John wrote: > > 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 > >>

Re: student question

2011-01-07 Thread Corey Richardson
On 01/07/2011 09:42 PM, John wrote: 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

student question

2011-01-07 Thread John
>>> 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? -- ht