Question: [Python]: Write the class Line that stores the coordinates of two points in a line and provides the distance between the two points and the
[Python]: Write the class Line that stores the coordinates of two points in a line and provides the distance between the two points and the slope of the line. Class methods must return the value.Use tuples or lists to provide the coordinates when initializing your class instances - Format your output for 3 decimals. >>>power(2,0) = 1
>>>power(5,-3)=0.008
>>>power(-2.1,2)=4.41
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
