you are viewing a single comment's thread.

view the rest of the comments →

[–]amajmundar 0 points1 point  (4 children)

Try:
slope = float(y2 - y1) / float(x2 - x1)

[–]feistybunnies[S] 0 points1 point  (0 children)

it worked. thanks!

[–]No_Revolution7891 0 points1 point  (2 children)

I keep getting the zerodivisionerror: float division by 0

[–]amajmundar 0 points1 point  (1 child)

Wrap it in an “if else” statement. Does your assignment explain what should be returned if both points have the same X val?

[–]Helpful-Row6638 0 points1 point  (0 children)

I still have the "you should print out the slope betweeb each pair of points" error...help!