#๐ Noob needs some help
27 messages ยท Page 1 of 1 (latest)
@soft hearth
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
!code
And what are you expecting the answer to be?
$270000.0
And what is it actually printing?
then I would assume your equation to calculate the tax is off
Ya, what are you basing that equation on?
1st year highschool class projected
ah
The explanation here is a bit confusing, but note:
Use a tax rate of 3% on all income if the income is more than $30,000
i got it
Which slightly contradicts:
Use a tax rate of 3% on all income if the income is more than $30,000
You're not supposed to do - 30000
and you don't add 500 to the total either
Ya, $500 is the "minimum", not a fee added on
That wording also contradicts the literal next sentence, but that's a separate issue.
what should i look at in my code then
your equation for calculating tax when income is greater than 30k
Think of it this way, the expected answer is exactly 3% of 90,000:
!e
print(270000/9000000)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
0.03
So anything else in the equation will just make the answer off
ehh okay ill look at the equation
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.