As a beginner, I tried this example:
2. How do I get rid of the ( ) ' ' and the , between the numbers?
thanks for responding
w = 45667.778 x = 56785.55 y = 34529.4568 z = 789612.554 nums = (w, x, y, z) print(tuple('${:,.0f}'.format(num).rjust(12, ' ') for num in nums))and got:
(' $45,668', ' $56,786', ' $34,529', ' $789,613')1. Is that the right way to do it?
2. How do I get rid of the ( ) ' ' and the , between the numbers?
thanks for responding