I have a tuple of numbers let's say nums = (1, 2, 3). The length of nums is not constant. Is there a way of using string formatting in python to do something like this
>>>print '%3d' % nums
that will produce
>>> 1 2 3
Hope it's not a repeat question, but I can't find it if it is. Thanks