totalSales=1000
print ("\rTotal Sales Amount is :"+ f"{float(totalSales):,.2f}")
output: Total Sales Amount is :1,000.00
:, formats the number with commas as thousands separators.
.2f ensures the number is formatted with two digits after the decimal point.