[Tutor] Expecting a float but get an int

Phil phillor9 at gmail.com
Sun May 23 04:40:26 EDT 2021


On 23/5/21 6:21 pm, Alan Gauld via Tutor wrote:

      a = (y2 - y1) / (x2 - x1) # a = .7 which is correct

> It is not correct.
> It should be (using your values) 0.7777777....

Thanks Alan,

I was chasing an error that didn't exist.

-- 

Regards,
Phil



More information about the Tutor mailing list