I having trouble with last two print statements. I am getting an error message saying that it is invalid format specifier.
my print statements are:
print(f'Balance after, {numYears:,}, years: $, {balance:,.2f}')
print(f'Total amount invested: $, {totalInvest:,.2f}')