It may be simple, but I have only been doing this a week.
I am learning to define functions, so I was doing Columbus, Ohio tax as a test.
I keep getting a space between the dollar amount and the total no matter what I try. I was hoping someone had a solution. Again I am very new and just here to learn.
>>> def tax_ohio(subtotal):
'''(number) -> number
Gives the total after Ohio tax given the
cost of an item.
>>> tax_ohio(100)
$107.5
>>> tax_ohio(50)
$53.75
'''
total = round(subtotal*1.075, 2)
return print('$',total)
>>> tax_ohio(100)
$ 107.5
decimalfor financial data.$107.50and not$107.5.