Are booleans overwritten in python?
<pre><code>def space_check(board, position):  
    return board[position] == ' '    

def full_board_check(board):
    for i in range(1,10):
        if space_check(board, i):
            return False
    return True
</code></pre>

<p>the last line is return True
why not <code>else: return True</code>
if the if statement returned false, won't the last <code>return True</code> overwrite it??</p>

<p>If it was </p>

<pre><code>for i in range(1,10):
    if space_check(board, i):
         return False
    else:
         return True
</code></pre>

<p>then after the first iteration in the for loop the function would return. This would not lead the the expected behaviour. Currently, you check every space, and not just the first one</p>

python python-3.x