title: How can I smoothly format set/dictionary for print?
body: <p>So I have a list/tuple/dict/etc such as this:</p>
  
  <pre><code>thing = [('6', '5x^6'), ('4', '3x^4'), ('3', '2x^3'), ('2', '-3x^2')]
  </code></pre>
  
  <p>and my goal is to print it as </p>
  
  <p>5x^6 + 3x^4 + 2x^3 + -3x^2 </p>
  
  <p>What can I put to format to continue as long as needed if I open up the data as</p>
  
  <pre><code>for key, number in thing:
      print('{}'.format(number))
  </code></pre>
  
  <p>or what kind of a format can understand this kind of database? </p>