input: Write a function to solve a quadratic equation given coefficients a, b, and c. The function should check if the discriminant is negative, zero, or positive and return the appropriate status and roots accordingly. If the discriminant is negative, return False and an empty list. If the discriminant is zero, return True and a list with one root. Else, return True and a list with two roots.
  
  
  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]
          }
  
  # Example usage:
  a = 1
  b = 3
  c = -4
  
  print(solveQuadratic(a, b, c)) # {'status': True, 'roots': [-4.0, 1.0]}
  
output: 
  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]
          }
  