writing to a file from within nested loops

2012-02-15 Thread Rituparna Sengupta
Hi, I'm working on this code and I keep getting an error. It might be some very basic thing but I was wondering if someone could help. Its a loop within a loop. The part outside the innermost loop gets printed fine, but the part within the innermost loop doesn't get printed. I get an error:

Re: writing to a file from within nested loops

2012-02-15 Thread Ian Kelly
On Wed, Feb 15, 2012 at 1:12 PM, Rituparna Sengupta rsengu...@wisc.edu wrote: Hi, I'm working on this code and I keep getting an error. It might be some very basic thing but I was wondering if someone could help. Its a loop within a loop. The part outside the innermost loop gets printed

Re: writing to a file from within nested loops

2012-02-15 Thread Chris Rebert
On Wed, Feb 15, 2012 at 12:12 PM, Rituparna Sengupta rsengu...@wisc.edu wrote: Hi, I'm working on this code and I keep getting an error. It might be some very basic thing but I was wondering if someone could help. Its a loop within a loop. The part outside the innermost loop gets printed

Re: writing to a file from within nested loops

2012-02-15 Thread Dave Angel
On 02/15/2012 03:12 PM, Rituparna Sengupta wrote: Hi, I'm working on this code and I keep getting an error. It might be some very basic thing but I was wondering if someone could help. Its a loop within a loop. The part outside the innermost loop gets printed fine, but the part within the

Re: writing to a file from within nested loops

2012-02-15 Thread Mark Lawrence
On 15/02/2012 20:12, Rituparna Sengupta wrote: Hi, I'm working on this code and I keep getting an error. It might be some very basic thing but I was wondering if someone could help. Its a loop within a loop. The part outside the innermost loop gets printed fine, but the part within the