Python String Example | Format String Numbers as Currency

This python string example will show us how to format a python string numbers as currency.

large_number = 126783.6457
print(f'Currency format for large_number with two decimal places and comma seperators: ${large_number:,.2f}')
# Returns
# Currency format for large_number with two decimal places and comma seperators: $126,783.65