SO everytime i run this code I basically get random ratios for my tax, even when i type in 'washington' for strState
def main():
strState = input(str("Please enter a state: "))
fltSubtotal = 21
print(strState)
fltTax = 0.0
if strState == 'oregon' or 'florida':
fltTax += (fltSubtotal * .00)
if strState == 'washington' or 'california' or 'texas':
fltTax += (fltSubtotal * .09)
else:
fltTax += (fltSubtotal * .07)
print(fltTax)
main()
Aucun commentaire:
Enregistrer un commentaire