It's ugly but works.
Hah. the '$1' is missing from the code :D
>>> '{}'.format(('$' + str(xyz)).rjust(10, ' ')) ' $1,234' >>>You can just drop the str.format() method and use only
('$' + str(xyz)).rjust(10, ' ')
partHah. the '$1' is missing from the code :D