input: Write a function to solve a quadratic equation given the coefficients a, b, and c. The function should return a dictionary indicating the status of the solution and the roots if they exist. If the equation has no real roots, the status should be false and the roots array should be empty. If the equation has one real root, the status should be true and the roots array should contain one element. If the equation has two real roots, the status should be true and the roots array should contain two elements.
  
  assert solveQuadratic(1, -3, 2) == {'status': True, 'roots': [1.0, 2.0]}
  assert solveQuadratic(1, 2, 1) == {'status': True, 'roots': [-1.0]}
  assert solveQuadratic(1, 0, 1) == {'status': False, 'roots': []}
  assert solveQuadratic(1, 3, -4) == {'status': True, 'roots': [-4.0, 1.0]}
  assert solveQuadratic(1, 0, 0) == {'status': True, 'roots': [0.0]}
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]}