New to Python

Jimmie Webb webbsoft2 at alltel.net
Tue Sep 21 16:42:18 EDT 2004


Gee whiz.  Don't jump down my throat for some oversite.  It's not like I
haven't put forth an effort trying to find out the problem before posting!
Yeah,  your right I was reading the "CREATE TABLE line out of the SIL file.
Thanks (I think)


"Jere Kahanpaa" <kahanpaa at sky1.astro.helsinki.fi> wrote in message
news:ciq37r$95m$1 at oravannahka.helsinki.fi...
> Jimmie Webb <webbsoft2 at alltel.net> wrote:
> > I tried x = float(nCost) but keep getting an error
> > ValueError: Invalid literal for float(): EATE TA
>
> Come on, do some basic debugging! Insert 'print repr(nCost)' before the
> conversation and look at what you really are feeding to the float()
> function. Well, we already now it: at some point you feed the string 'EATE
> TA' to float(), and it obviously cannot convert this to a number.
>
> Jere
> -- 
> Lord, make my words as sweet as honey, for one day I may have to eat them
>                                                            - Daryl Benson






More information about the Python-list mailing list