Path: blob/master/05-Object Oriented Programming/02-Object Oriented Programming Homework.ipynb
666 views
Kernel: Python 3
Object Oriented Programming
Homework Assignment
Problem 1
Fill in the Line class methods to accept coordinates as a pair of tuples and return the slope and distance of the line.
In [1]:
In [2]:
In [3]:
Out[3]:
9.433981132056603
In [4]:
Out[4]:
1.6
Problem 2
Fill in the class
In [5]:
In [6]:
In [7]:
Out[7]:
56.52
In [8]:
Out[8]:
94.2