Line Equations in Python

The other day I was playing with some Python challenges found on a popular sites, this challenge worked with xy coordinates on a 2D plane. I wanted to show some of the code I wrote and how they work. The Plane Being the data is a tuple of x, y coordinates we will use the Cartesian Coordinate System . I started my code off as a simple Python class: class Line(object): def __init__(self, data): self.