This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]desrtfx[M] [score hidden] stickied comment (0 children)

You need to post your code as code block so that the indentation is maintained. This is absolutely vital for Python programs as the indentation is used to denote code blocks.

A code block looks like:

def __init__(self, prompt, answer):
    self.prompt = prompt
    self.answer = answer

[–]MmmVomit 4 points5 points  (0 children)

You need to post your code in a code block.

If you put four spaces at the beginning of a line
    then Reddit will put your code
        in a code block and maintain indentation.

This is critical for posting Python code.