title: How to make the plus sign show for a variable in python
body: <h3>I am currently working on a program in Python that will factor trinomial equations into binomial equations. However, the problem is that whenever I calculate the binomials, if it is positive then the + sign will not show up. For example, when I input 2 for b and -15 for c I get the output</h3>
  
  <blockquote>
    <p>The binomials are: (x-3)(x5)</p>
  </blockquote>
  
  <h3>As you can see, the + sign does not show for the second binomial. How can I fix this?</h3>
  
  <h3>Here is my code:</h3>
  
  <pre><code>import math
  print " This program will find the binomials of an equation."
  a = int(raw_input('Enter the first coefficient'))
  b = int(raw_input('Enter the second coefficient'))
  c = int(raw_input('Enter the third term'))
  firstbinomial=str(int((((b*-1)+math.sqrt((b**2)-(4*a*c)))/(2*a))*-1))
  secondbinomial=str(int((((b*-1)-math.sqrt((b**2)-(4*a*c)))/(2*a))*-1))  
  print"The binomials are: (x"+firstbinomial+")(x"+secondbinomial")"
  </code></pre>
  
  <h3>I have tried doing:</h3>
  
  <pre><code>import math
      print " This program will find the binomials of an equation."
      a = int(raw_input('Enter the first coefficient'))
      b = int(raw_input('Enter the second coefficient'))
      c = int(raw_input('Enter the third term'))
      firstbinomial=str(int((((b*-1)+math.sqrt((b**2)-(4*a*c)))/(2*a))*-1))
  if firstbinomial&lt;=0:
       sign=""
  else:
       sign="+"
      secondbinomial=str(int((((b*-1)-math.sqrt((b**2)-(4*a*c)))/(2*a))*-1))  
  if secondbinomial&lt;=0:
       sign=""
  else:
       sign="+"
      print"The binomials are: (x"+sign+firstbinomial+")(x"+sign+secondbinomial")"
  </code></pre>
  
  <h3>However I ended up getting:</h3>
  
  <blockquote>
    <p>The binomials are: (x+-3)(x+5)</p>
  </blockquote>