title: Pretty print a factorized polynomial
body: <pre><code>from math import sqrt
  
  def factor(a, b, c):
    x1 = (-1 * b) + sqrt(b * b - (4 * a * c))
    x2 = (-1 * b) - sqrt(b * b - (4 * a * c))
    solution1 = (x1 / (2 * a))
    solution2 = (x2 / (2 * a))
    expression1 = ['x', (-1 * solution1)]
    expression2 = ['x', (-1 * solution2)]
    return expression1, expression2
  
  print(factor(1, -17, 12))
  </code></pre>
  <p>I cannot figure out how to replace the values in the list to make the output look cleaner. I have tried arranging the values in different orders and adding <code>str</code>s to make it look better, but to no avail.</p>
  <p>How can I make the output look like <code>(x - 16.2)(x - 0.73)</code> instead of <code>(['x', -16.262087348130013], ['x', -0.7379126518699879])</code>? I have not been successful in removing the unnecessary characters from the output.</p>
  <p>I just want to remove the bracets and quotes.</p>