Did you put that directly under def next(self): ?? You should have had something. Look can you copy all of your code, and put it between
triple back space, so we can see all of it properly at once? Then we can help you.
For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/