Mar-08-2017, 10:15 PM
I just started doing a programing course on python and am running into this error with this simple tax calculator . Would anyone be able to explain to me what ive done wrong in as simple as terms as possible ? Thank you in advanced !
TAXRATE = 0.20
STANDARD_DEDUCTION = 10000.0
DEPENDANT_DEDUCTION = 3000.0
grossIncome = float(input("Enter the gross income"))
numDependants = int(input("Enter the number of dependants"))
taxableIncome = grossIncome - STANDARD_DEDUCTION \
- DEPENDANT_DEDUCTION * numDependants
incomeTax = taxableIncome * TAX_RATE
print("The income tax is $" = str(incomeTax))

TAXRATE = 0.20
STANDARD_DEDUCTION = 10000.0
DEPENDANT_DEDUCTION = 3000.0
grossIncome = float(input("Enter the gross income"))
numDependants = int(input("Enter the number of dependants"))
taxableIncome = grossIncome - STANDARD_DEDUCTION \
- DEPENDANT_DEDUCTION * numDependants
incomeTax = taxableIncome * TAX_RATE
print("The income tax is $" = str(incomeTax))