Tax Calculator: Tutorial is reading other number than the ones I type


Hello, I am puzzled that the tax calculating part of the exercise is not reading the numbers that I am typing in. It says,
"Oops, try again. It looks like tax is 3.00375 instead of 0.0675."
when I have actually typed 0.0675.

Here is the link:

Here is a screen shot:

Any help much appreciated. Thank-you everyone!

Replace this line with your code.


It looks like the SCT is expecting us to assign the rate to the variable, not the calculated value.

tax =  0.0675

In a later step I suspect we would write something along these lines...

meal += meal * tax

but that's just a guess.


Eye on the question:

Create the variable tax and set it equal to the decimal value of 6.75%

As question is saying to just make text variable to equal to decimal value of 6.75% so it's turned
out to be simple conversion of Percent values into Decimal and to save it in a variable.


Exactly. 6.75 / 100.


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