input: Write a function to solve a quadratic equation given the coefficients a, b, and c. The function should return the roots of the equation as a dictionary with a status key indicating the success (True) or failure (False) of the equation and a roots key containing the calculated roots. If the discriminant is negative, the function should return an empty list for roots. If the given equation has no real roots, the function should return a dictionary with status set to False and roots set to an empty list.
  assert solveQuadratic(1, 3, -4)=={'status': True, 'roots': [-4.0, 1.0]}
  assert solveQuadratic(1, 0, 1)=={'status': False, 'roots': []}
  assert solveQuadratic(1, 2, 1)=={'status': True, 'roots': [-1.0]}
  assert solveQuadratic(1, -5, 6)=={'status': True, 'roots': [2.0, 3.0]}
  assert solveQuadratic(1, 4, 5)=={'status': False, 'roots': []}
output: def solveQuadratic(a, b, c):
      discriminant = b**2 - 4*a*c
      if discriminant < 0:
          return {'status': False, 'roots': []}
      elif discriminant == 0:
          root = -b / (2*a)
          return {'status': True, 'roots': [root]}
      else:
          root1 = (-b + discriminant**0.5) / (2*a)
          root2 = (-b - discriminant**0.5) / (2*a)
          return {'status': True, 'roots': [root1, root2]}