How do I format a number to have a thousands separator and round to two decimals while trying to format a variable in? For example
print('{} earns {} a year".format(name, earnings ':,.2f')
doesn't seem to work. How do I add in both variables but format my number value?