Re: [Tutor] getting TypeError: float() argument must be a string or a number

2013-04-26 Thread Jerry Hill
On Fri, Apr 26, 2013 at 8:05 PM, bob gailer wrote: > - Provide some of your program (all of it if not too long) as part of > the email body. > ​And if your program is too long to comfortably post in the body of an email​, there's some great advice about how to trim large amounts of code down to

Re: [Tutor] getting TypeError: float() argument must be a string or a number

2013-04-26 Thread bob gailer
On 4/26/2013 6:57 PM, Rajlaxmi Swain wrote: Welcome to the tutor list. You appear to be a first-time visitor. To help us help you: - Tell us: - Which version of Python you are using - How you are entering and executing your program, - Provide some of your program (all of it if not too lon

Re: [Tutor] getting TypeError: float() argument must be a string or a number

2013-04-26 Thread Steven D'Aprano
On 27/04/13 08:57, Rajlaxmi Swain wrote: How can I fix this. Don't call float(foo) when foo is not a string or number. To debug this, you need to follow these steps: 1) Look at the error message. It will tell you the line number that fails. 2) Look at that line of code. What are you calling

Re: [Tutor] getting TypeError: float() argument must be a string or a number

2013-04-26 Thread Alan Gauld
On 26/04/13 23:57, Rajlaxmi Swain wrote: How can I fix this. Fix what? you've sent (part of) the error message but not what caused it nor the full error text. Don't make us guess, help us to help you. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/

Re: [Tutor] getting TypeError: float() argument must be a string or a number

2013-04-26 Thread Dave Angel
On 04/26/2013 06:57 PM, Rajlaxmi Swain wrote: How can I fix this. I don't see any antecedents for the pronoun. Show us some code, tell us the situation, and show us the full traceback. Otherwise we'd just be paraphrasing the error message. Make sure the argument is a string, or an int,

[Tutor] getting TypeError: float() argument must be a string or a number

2013-04-26 Thread Rajlaxmi Swain
How can I fix this. Thanks, test ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor