#πŸ”’ list indices must be integers or slices, not str

10 messages Β· Page 1 of 1 (latest)

faint hawkBOT
#

Hey @robust seal!

Please edit your message to use a code block

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

This will result in the following:

print('Hello, world!')```
#

@robust seal

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.

grim herald
#

would you mind posting the traceback and fixing the syntax highlighting?

main gyro
#

!code

faint hawkBOT
#
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.

fervent current
#

What is response_data like?

mossy violet
#

@Vivi ^^

robust seal
#

It’s connected to this function

faint hawkBOT
#
Python help channel closed for inactivity

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.