
Patrick B. answered 02/17/21
Math and computer tutor/teacher
houseValue = input("Please input the value of the house:>")
taxPercent=0
if float(houseValue)>=200000:
taxPercent=0.02
elif float(houseValue)>=100000:
taxPercent=0.015
elif float(houseValue)>=50000:
taxPercent=0.01
taxAmount = round(float(taxPercent)*float(houseValue),2)
print("*********************************")
print(" the value of the house is $"+str(houseValue))
print(" the tax percent is " + str(float(taxPercent)*100) +"%")
print(" the tax amount is $"+ str("{:.2f}".format(taxAmount)))