input: Write a function that solves a quadratic equation given coefficients a, b, and c. The function should return a dictionary with two keys: "status" which is a boolean indicating if the equation has real roots, and "roots" which is a list containing the real roots. If the discriminant is negative, the function should return an empty list for the roots and false for the status. If the discriminant is zero, the function should return a list with one root and true for the status. If the discriminant is positive, the function should return a list with two roots and true for the status.
  
  import math
  
  def solveQuadratic(a, b, c):
      discriminant = (b**2) - (4*a*c);
      
      # If discriminant is negative there are no real roots.
      if (discriminant < 0):
          return {
              "status": False,
              "roots": []
          }
      # If discriminant is zero, there is only one real root.
      elif (discriminant == 0):
          x = -b/(2*a)
          return {
              "status": True,
              "roots": [x]
          }
      # Otherwise there are 2 real roots
      else:
          x1 = (-b + math.sqrt(discriminant)) / (2*a);
          x2 = (-b - math.sqrt(discriminant)) / (2*a);
          return {
              "status": True,
              "roots": [x1, x2]
          }
  
  a = 1
  b = 3
  c = -4
  
  print(solveQuadratic(a, b, c)) #{'status': True, 'roots': [-4.0, 1.0]}
  assert solveQuadratic(1, 3, -4) == {'status': True, 'roots': [-4.0, 1.0]}
  assert solveQuadratic(1, 2, 1) == {'status': True, 'roots': [-1.0]}
  assert solveQuadratic(1, 0, 1) == {'status': False, 'roots': []}
  assert solveQuadratic(1, -5, 6) == {'status': True, 'roots': [2.0, 3.0]}
  assert solveQuadratic(2, 4, 2) == {'status': True, 'roots': [-1.0]}
output: import math
  
  def solveQuadratic(a, b, c):
      discriminant = (b**2) - (4*a*c)
      
      if discriminant < 0:
          return {
              "status": False,
              "roots": []
          }
      elif discriminant == 0:
          x = -b/(2*a)
          return {
              "status": True,
              "roots": [x]
          }
      else:
          x1 = (-b + math.sqrt(discriminant)) / (2*a)
          x2 = (-b - math.sqrt(discriminant)) / (2*a)
          return {
              "status": True,
              "roots": [x1, x2]
          }