#๐Ÿ”’ Noob needs some help

27 messages ยท Page 1 of 1 (latest)

shell gobletBOT
#

@soft hearth

Python help channel opened

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.

tardy hawk
#

!code

shell gobletBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

tardy hawk
#

And what are you expecting the answer to be?

soft hearth
#

$270000.0

tardy hawk
#

And what is it actually printing?

soft hearth
spice basalt
#

then I would assume your equation to calculate the tax is off

tardy hawk
#

Ya, what are you basing that equation on?

soft hearth
#

1st year highschool class projected

spice basalt
#

ah

tardy hawk
#

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

spice basalt
#

i got it

tardy hawk
#

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

spice basalt
#

and you don't add 500 to the total either

tardy hawk
#

Ya, $500 is the "minimum", not a fee added on

#

That wording also contradicts the literal next sentence, but that's a separate issue.

soft hearth
#

what should i look at in my code then

spice basalt
#

your equation for calculating tax when income is greater than 30k

tardy hawk
#

Think of it this way, the expected answer is exactly 3% of 90,000:

#

!e

print(270000/9000000)
shell gobletBOT
tardy hawk
#

So anything else in the equation will just make the answer off

soft hearth
#

ehh okay ill look at the equation

shell gobletBOT
#
Python help channel closed using Discord native close action

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.