"pierre cutellic" <[EMAIL PROTECTED]> wrote
> 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
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
div