income = float(input("Enter the annual income: ")) if income <= 85528: tax = income *0.18 - 556.2 else: tax = (income - 85528)*0.32 + 14839.2 tax = round(tax, 0) print("The tax is:", tax, "thalers")gave me the expected outcome.
Larz60+ write Mar-15-2024, 02:39 AM:
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. Added for you this time.
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. Added for you this time.