I'm having some trouble reading multiple data types from a single text file.

say I had a file with names and numbers:

bob
100
sue
250
jim
300

I have a few problems. I know how to convert the lines into an integer but I
don't know how to iterate through all the lines and just get the integers
and store them or iterate through the lines and just get the names and store
them.

please help.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to