 <p>You code is not formatted with indents, so this may be wrong.</p> <p>I suspect your indentation results in <code>if j in screen:</code> running after the <code>for j...</code> loop, not in it. Also, read the definition of <code>pass</code>.</p>