# This how I resolve your code income = float(input("Enter the annual income: ")) if 3090.0 < income <= 85528.0 : # this income of 3090.0; came from this equation tax=0;which equal to (0.18 * income)=556.2 tax= ((0.18 * income) - 556.2) elif income > 85528.0 : tax= 0.32*(income - 85528.0)+ 14839.2 else: tax=0 # # Write your code here. # tax = round(tax, 0) print("The tax is:", tax, "thalers")
Larz60+ write Jul-21-2021, 03:44 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
fixed for you this time. Please use bbcode tags on future posts
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
fixed for you this time. Please use bbcode tags on future posts