I want to have output with the same spacing. Let me illustrate desired output:
Item1 = 1000 USD
Item2 = 500 USD
Item3 = 1500 USD
My current code:
print("{:4s} = {} {}" .format(name, round(value), currency))
My current output has very ugly second item output
Item1 = 1000 USD
Item2 = 500 USD
Item3 = 1500 USD
The problem is that for the second variable I cannot fix the spacing it consumes unlike the string in first variable.