#๐Ÿ”’ Please Help

27 messages ยท Page 1 of 1 (latest)

sullen summitBOT
#

@vocal island

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.

glossy lotus
#

!code

sullen summitBOT
#
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.

glossy lotus
#

Also i is not an integer

#

But a string

#

So it would raise an error

vocal island
#

?

glossy lotus
#

Look at line 3

vocal island
#

Ok and?

glossy lotus
#

You convert the input value to integer before storing it to i

vocal island
#

How?

glossy lotus
#

Look at your code

vocal island
#

Ok and

glossy lotus
#
i = int(input("Podaj Operator Matematyczny"))
    ^^^
#

you convert to integer

#

but everything you compare with is a string

vocal island
#

What you changed

glossy lotus
#

READ YOUR CODE

#

I changed nothing

vocal island
#

I dont understand but ok

#

Coding not for me I gues

glossy lotus
#

ok, let run the code in text like here

#

I will act like the interpreter

sullen summitBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, 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.

#

๐Ÿ”’ Please Help