Create a black and white chessboard in a two dimensional array
<p>Is there a better (and shorter) way of how to create chessboard like array. Requirements for the board are:</p>

<ul>
<li>board can be different size (in my example it's 3x3) </li>
<li>bottom left square of the board should always be black</li>
<li>black square is presented by <code>"B"</code>, white square is presented by <code>"W"</code></li>
</ul>

<p><strong>Code that I have:</strong></p>

<pre><code>def isEven(number):
    return number % 2 == 0

board = [["B" for x in range(3)] for x in range(3)]
if isEven(len(board)):
    for rowIndex, row in enumerate(board):
        if isEven(rowIndex + 1):
            for squareIndex, square in enumerate(row):
                if isEven(squareIndex + 1):
                    board[rowIndex][squareIndex] = "W"
        else:
            for squareIndex, square in enumerate(row):
                if not isEven(squareIndex + 1):
                    board[rowIndex][squareIndex] = "W"
else:
    for rowIndex, row in enumerate(board):
        if not isEven(rowIndex + 1):
            for squareIndex, square in enumerate(row):
                if isEven(squareIndex + 1):
                    board[rowIndex][squareIndex] = "W"
        else:
            for squareIndex, square in enumerate(row):
                if not isEven(squareIndex + 1):
                    board[rowIndex][squareIndex] = "W"

for row in board:
    print row
</code></pre>

<p><strong>Output:</strong></p>

<pre><code>['B', 'W', 'B']
['W', 'B', 'W']
['B', 'W', 'B']
</code></pre>
