[Tutor] populating an array or using a dictionary

Bryan Fodness bryan.fodness at gmail.com
Fri Oct 19 17:20:25 CEST 2007


I have a data file that I would like to extract data from:

FS   1   2   3   4   5
1.5   1.000   1.000   1.000   1.000   1.000
2.0   0.985   0.994   0.997   0.996   0.996
2.5   0.967   0.976   0.981   0.981   0.982
3.0   0.949   0.958   0.965   0.966   0.967
3.5   0.925   0.937   0.945   0.948   0.951
4.0   0.901   0.916   0.925   0.930   0.934
4.5   0.882   0.896   0.906   0.912   0.917
5.0   0.863   0.876   0.887   0.893   0.899


The first row is a variable d, and the first column is FS.  Any suggestions
on the best way to do this.

Bryan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20071019/f07959d4/attachment.htm 


More information about the Tutor mailing list