Re: [Tutor] Struggling with writing results of loop into txt file

2006-03-21 Thread Kent Johnson
Matt Dempsey wrote: > I'm using xmltramp to process some U.S. House of Rep. vote data. I can > get it to print what I want but when I try to write it to a text file I > had all sorts of problems. Can someone tell me what I'm doing wrong? > > for each in range(votes): >st= str(vd[each].legis

[Tutor] Struggling with writing results of loop into txt file

2006-03-21 Thread Matt Dempsey
I'm using xmltramp to process some U.S. House of Rep. vote data. I can get it to print what I want but when I try to write it to a text file I had all sorts of problems. Can someone tell me what I'm doing wrong? I've done quite a bit of searching for the solution but as a novice to Python I'm at a