how to format a number with a dollar sign in python code example Example: format integer to be money python formatted_float = "${:,.2f}".format(1500.2)