Feb-04-2020, 07:12 PM
Although Larz+ is right and this is a good place to use a dictionary I'm very surprised at your "not finding anything" comment as this is a classic use case for the "if" statement:
tax = None county = "Franklin" if county == "Springfield": tax = 0.075 elif county == "Franklin": tax = 0.05 elif county == "Riverside": tax = 0.032 else: tax = 0.40 print(tax)
"So, brave knights, if you do doubt your courage or your strength, come no further, for death awaits you all with nasty, big, pointy teeth!" - Tim the Enchanter