What format string would I use to print expressions like
2x^3 + 3x^2 - 6x + 1
(notice spaces on either side of signs)
30.1x^2 + 60.2x - 90.3
and (if straightforward)
x^2 + 2x + 1
(no coefficient on terms in x if coefficient is 1).
I've tried inserting padding between a forced sign like this:
"{0: =+}x^2 {1: =+}x {2: =+}".format(1, -2, 3)
but no padding appears.