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.