The tax


#1



script.py

1
2
3
4
meal = 44.50
variable_tax = 6.75
division = 6.75 / 100
variable = tax
Traceback (most recent call last):
File "python", line 4, in
NameError: name 'tax' is not defined


im trying to finishe the lesson


Replace this line with your code. 
meal = 44.50
variable_tax = 6.75
division = 6.75 / 100
variable = tax


#2

you only need to define meal and tax - variable_tax should just be tax, and it should be set to the decimal value of the percent 6.75%
to convert a percentage to a decimal, you need to move the decimal two places to the left, so 6.75% would be .0675, which is what you set the variable tax to.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.