Hi,
i'm actually stuck with a stupid syntax problem.

here is a a piece of code i can't debug:

kx = (neighbor[1]+agent[1])/(dx-(neighbor[1]+agent[1]))

in this line, 'neighbor[1]' and 'agent[1]' are both integers and 'dx' is a
float so it gives me the following error: 'ZeroDivisionError: float
division'.

And it is the same if i convert them into floats by float() function.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to