price = input("How much: ")
country = input("which country are you from :")
tax = 0
total = int(price) + (int(price)*(tax/100))
if country =="Canada" :
province = input("Which province? :")
if province == "Alberta" :
tax = 5
print(total)
elif province == "Ontario" :
tax = 13
print(total)
else :
tax = 11
print(total)
else :
tax = 0
print(total)
This code does not update the tax and doesn't calculate total afterward accordingly. Can anyone suggest any solution?