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


#1

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:
https://www.codecademy.com/courses/python-beginner-GB6hM/0/2?curriculum_id=4f89dab3d788890003000096#

Here is a screen shot:

Any help much appreciated. Thank-you everyone!


Replace this line with your code.


#2

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.


#3

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.


#4

Exactly. 6.75 / 100.


#5

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