def _get_derivative(coordinates):
 try:
  return (coordinates[1] / coordinates[0])
 except ZeroDivisionError:
  return float('inf')

def _get_derivative ( coordinates ) : try : return ( coordinates [ 1 ] / coordinates [ 0 ] ) except ZeroDivisionError : return float ( 'inf' )
get derivative of the line from to given coordinates .