task6.py 469 Bytes
Newer Older
Adam Blank's avatar
Adam Blank committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
def make_boolean_square_board(n):
    """
    Makes a 2D board of a desired size filled with False as default value.
    
    Args:
        n (int): size of the board.
    
    Returns:
        list[list[bool]]: board of desired size.
    """
    board = []

    # TODO: Make the empty board. Hint (approx 5 lines): 
    # Do n times: 
    #     Make a new empty list x
    #     Do n times:
    #         Add False to the list
    #     Add x to board
    return board