Reading a comma delimited file

Terry Reedy tjreedy at home.com
Thu Nov 8 17:04:38 CET 2001


"Kristen Zander" <kzander at hot.rr.com> wrote in message
news:DCxG7.2903$qK.166227 at typhoon.austin.rr.com...
> Here's what it looks like when I'm done:
>
> [('Cotulla',  28.449999999999999,  99.216700000000003,  1960.0,
2.0,  11.1,
> 20.0,  0.0,  167.30000000000001),
>  ('Cotulla',  28.449999999999999,  99.216700000000003,  1960.0,
3.0,
> 6.0999999999999996,  13.9,  0.0,  239.0)]
>
> Just what I need except I don't want all those decimal places.

Look up 'format % values' formatting.

Terry J. Reedy






More information about the Python-list mailing list