Nov-20-2019, 01:13 PM
(Nov-19-2019, 07:09 PM)gontajones Wrote: Maybe this way will be more easy to understand:
def get_tax(year, value): if year > 2004: tax = value * 22 / 100 else: tax = value * 11 / 100 return tax tax = get_tax(2005, 100) print(tax)
I'd also use this one if I were a beginner, still, I like the option ichabod801 suggested too