Ask coding questions

← Back to all posts
Y = Mx + B Python
AaronG1 (5)

I'm new to python, have never written code before and I have this small assignment. Here it is

Write a program in which you input two points on the cartesian plane and the program will provide the equation for a straight line that passes through both points.

So basically I have to input the two points into the code and the outcome is the equation for a straight that passes through those two points.

nhn (0)

Have a look at this repl: