title: How to format(align) a variable amount of data
body: <p>I am trying to format data to be a certain amount of spaces apart, which would be very simple if it were a strict number of inputs, but it can vary.
  For example, this is what I have:</p>
  <pre><code>for i in LongPerEq:
       string = string + '%' + str(i) + 's '
  # Where string is now '%6s %8s %9s'
  line1 = string % (equations[0][0], equations[1][0], equations[2][0])
  return(line1)
  </code></pre>
  <p>As you can see, I was able to make the 'string' variable into a string that will align them all properly, and it doesn't depend on the amount of 'equations' I want to use. So that part is good. The problem is the part where I have</p>
  <pre><code> % (equations[0][0], equations[1][0], equations[2][0])
  </code></pre>
  <p>This is an issue because as it is, it is stuck being used for only 3 equations. It should be usable for 1, 2, 4, and 5.
  Hopefully this explained the issue I am having... any help would be greatly appreciated!</p>