code: def intersection(L1, L2):
      
      D = L1[0] * L2[1] - L1[1] * L2[0]
      Dx = L1[2] * L2[1] - L1[1] * L2[2]
      Dy = L1[0] * L2[2] - L1[2] * L2[0]
      if D != 0:
          x = Dx / D
          y = Dy / D
          return x, y
      else:
          return False
docs: Intersects two line segments
  
      Args:
          L1 ([float, float]): x and y coordinates
          L2 ([float, float]): x and y coordinates
      Returns:
          bool: if they intersect
          (float, float): x and y of intersection, if they do