doesn't like / as a divide symbol

battery841 at usa.net battery841 at usa.net
Wed Oct 27 23:42:35 EDT 1999


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?


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




More information about the Python-list mailing list