[Tutor] Please help
Allen John Schmidt, Jr.
ajschmidt at fredericksburg.com
Wed Aug 3 17:08:15 CEST 2005
Whoops! Had to correct it!
Hey, I had a similar problem not too long ago. My data came in the first
format, but I didn't need it formated like that.
Here is how I would have written it:
f1 = open('xx','r')
for i in fl:
That would collect the data and put it into a dictionary with the values
being a list of the two part data. You could print like this:
for each in mind.keys():
for value in mind[each]:
print each+" "+value+" "+value
That should do it!
Ask if you don't understand any part of it.
Allen J. Schmidt, Jr.
Tutor maillist - Tutor at python.org
More information about the Tutor