When you are posting code, templates, error messages, tracebacks, or any other preformatted text, surround that text between lines of three backtick - ` characters. This means you’ll have a line of ```, then the code (or template, or error message, or traceback), then another line of ```.
Example: The next line of this post is ```:
# The line above this is ```
def function():
return None
# The line after this is ```
If you don’t put those lines around your code, it ends up looking like what you’ve got posted - you lose all the indentation, making the code difficult to understand.
The lines of ``` must be on lines by themselves, they must not be part of another line.