input: Write a function to solve a quadratic equation in Python. The function should take the coefficients a, b, and c as input, and return a dictionary with a boolean 'status' key which is True if the equation has real roots and False otherwise, and a 'roots' key which contains the list of real roots. If the given equation has no real roots, the 'roots' list should be empty.
  
  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 roots.
      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
  
  assert solveQuadratic(a, b, c) == {'status': True, 'roots': [-4.0, 1.0]}
  
  a = 1
  b = 2
  c = 5
  
  assert solveQuadratic(a, b, c) == {'status': False, 'roots': []}
  
  a = 1
  b = -4
  c = 4
  
  assert solveQuadratic(a, b, c) == {'status': True, 'roots': [2.0]}
output: 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]
          }