String Fomat Conversion

mcg mgarrett at garrett-technologies.com
Thu Jan 27 05:53:02 CET 2005


Investigating python day 1:

Data in file:
x   y
1   2
3   4
5   6


Want to read file into an array of pairs.

in c: scanf("%d %d",&x,&y)---store x y in array, loop.

How do I do this in python??
In the actual application, the pairs are floating pt i.e. -1.003




More information about the Python-list mailing list