Python course example
class Line: def __init__(self, (x, y), (x1, y1)): self._b = (x, y) self._e = (x1, y1) def length(self): import math return math.sqrt((self._b[0]-self._e[0])**2 + (self._b[1]-self._e[1])**2) I have Python 3.4. In line 2 gives the error Invalid sintax.