In the bottom of the screen, we see an error message referring to line 3. The red X is shown next to line 3 to show us exactly where our error is. To fix this error we have to identify
that “tax rate” is an invalid variable name, and the way we are going to fix it
is by adding an underscore. A new error message is shown on line 4.
This time it says EOL, which means end of line. We know to put our focus at the end
of line 4. Since we open the string with double
quotes we must also close with double quotes. To fix this error we are going to
change the single quotation marks at the end of the line to double quotation
marks. Now we have a syntax error on line 5. To fix this error we are going to change
the variable name, because “class” is a reserved word in Python. So, we add a
descriptive variable name instead. We now have a syntax error on line one. To fix this we’re going to add the
variable name in front of the equal sign. Remember that only a variable can be on
the left-hand side of the equals operator in an assignment statement. Now we have a syntax error on line 2. To fix this error we are going to add
“value” in front of the equal sign. This is because in the assignment statement, the
expression must be on the RHS of the equals operator. The variable
being assigned a value must always be on the LHS.