[Tutor] converting string to text

grubber at roadrunner.com grubber at roadrunner.com
Sat Jun 29 01:08:47 CEST 2013


I don't get why this doesn't work. Its a very small program to read in a group of numbers. I've attached the the python file and my test file. The test file just contains one line. The error I get is that it can't convert the string to a float, but its a valid number.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: text/x-python
Size: 520 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/tutor/attachments/20130628/cabed956/attachment-0001.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.dat
Type: application/x-ns-proxy-autoconfig
Size: 32 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/tutor/attachments/20130628/cabed956/attachment-0001.dat>


More information about the Tutor mailing list