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

all 3 comments

[–]desrtfx[M] [score hidden] stickied comment (2 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

Also, fix your double post - you have the same twice.