When I put in line 7 or
the code doesn't work as intended.
Can someone please tell me the reason for that?
# x = int(input("Insert price for your product :"))
x=100
print ("Does your product include taxes?")
# answer = input(" yes or no ")
answer = "no"
if answer == "yes" or "Yes" or "YES":
print ("final price is : ", x, "\n the tax is :" ,x*0.17)
elif answer == "no":
print ("final price is : ", x*1.17, "\n the taxes is ", x*0.17)
else:
print ("Your answer is not according to the dictionnary - try again")
I expect that any input for the word YES will work for the if
in the code.