Re: [Tutor] converting string to text

2013-07-10 Thread Marc Tompkins
On Wed, Jul 10, 2013 at 3:45 AM, Dave Angel wrote: > > Get rid of the BOM from the data file, and it'll work fine. You don't > specify what version of Python you're using, so I have to guess. But > there's a utf-8 BOM conversion of a BOM at the beginning of that file, and > that's not numeric.

Re: [Tutor] converting string to text

2013-07-10 Thread Dave Angel
On 06/28/2013 07:08 PM, grub...@roadrunner.com wrote: 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 fl

[Tutor] converting string to text

2013-07-10 Thread grubber
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.# Test for string conversion