How do I change the default value of the , in the following code so that it does not insert a space
gas = int(input("How much have you spent on gas? "))
electric = int(input("How much have you spent on electric? "))
onlinePurchases = int(input("How much have you spent on online purchases? "))
total = gas + electric + onlinePurchases
print("Monthly Total: $", total)
The current code would print:
"Monthly total: $ *total*"
Is there a way to make it print:
"Monthly total: $*total*"
I do not want a space between the dollar sign and the amount.