Run ❯
Get your
own Python
server
Result Size:
625 x 565
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
def slope(x1, y1, x2, y2): s = (y2-y1)/(x2-x1) return s print(slope(80,240,90,260))
x
def
slope
(
x1
,
y1
,
x2
,
y2
):
s
=
(
y2
-
y1
)
/
(
x2
-
x1
)
return
s
print
(
slope
(
80
,
240
,
90
,
260
))
2.0