Miscellany
public python v1 · immutabledef slope(x1, y1, x2, y2): """ >>> slope(5, 3, 4, 2) 1.0 >>> slope(1, 2, 3, 2) 0.0 >>> slope(1, 2, 3, 3) 0.5 >>> slope(2, 4, 1, 2) 2.0 """ run = x2 - x1 rise = y2 - y1 print run, rise # still here for testing outputs until I get it right