Dec-22-2016, 03:07 PM
Using this formatting code:
print('${:>10,.0f}'.format(xyz))
I get:
$ 1,234
$12,000,000
I want:
$1,234
$15,000
$12,000,000
1. How do change the format statement to get the $ to be up against the first number
print('${:>10,.0f}'.format(xyz))
I get:
$ 1,234
$12,000,000
I want:
$1,234
$15,000
$12,000,000
1. How do change the format statement to get the $ to be up against the first number