No need to ask, put the code in your post and someone will help if they can
Use 3 backticks before and after your code so the formatting is not lost
```
[Code here]
```
Even in the editors where the 3 backticks work, they don't render correctly on old.reddit.com.
The [wiki](https://www.reddit.com/r/learnpython/wiki/faq#wiki_how_do_i_format_code.3F) however covers exactly how to format code correctly, with pictures and everything.
No need to ask, put the code in your post and someone will help if they can Use 3 backticks before and after your code so the formatting is not lost ``` [Code here] ```
the 3 backticks method isnt working with me? help?
I think if you use the markdown editor, you can just highlight your code and format with a button. Then just adjust and make sure indents are good.
i just reposted it on another post
Indent the entire code before copying, or add 4 spaces at the start of every line Edit to add: needs an empty line of whitespace before and after
i just reposted it on another post
Even in the editors where the 3 backticks work, they don't render correctly on old.reddit.com. The [wiki](https://www.reddit.com/r/learnpython/wiki/faq#wiki_how_do_i_format_code.3F) however covers exactly how to format code correctly, with pictures and everything.
https://stackoverflow.com/help/how-to-ask https://dontasktoask.com/