doesn't like / as a divide symbol

bgkloss at my-deja.com bgkloss at my-deja.com
Thu Oct 28 03:07:11 EDT 1999


In article <7v8gnb$2d0$1 at nnrp1.deja.com>,
  battery841 at usa.net wrote:
> I am new to Python.  I am trying to write a program that will do a
> redundant math equation for my science class.  However, when I try to
> run the program, it gives me the following error:
>
>   File "saturated.py", line 20, in ?
>     PERCENT_SATURATED=SATURATION_ARRAY[count] / MEASURED_ARRAY[count]
> TypeError: bad operand type(s) for /
>
> I don't get what's wrong with that.  I believe that all my arrays are
> okay.  Any ideas?
Yes - it looks like one of the values is not a number

What results do you get if you just print SATURATION_ARRAY[count]
and MEASURED_ARRAY[count]?


Sent via Deja.com http://www.deja.com/
Before you buy.




More information about the Python-list mailing list