Day4/day4.1.py
def is_complete(board):
    """
    Given a bingo board as a 2D array of integers,
    return if it is now complete
    """
    rows = board
    for row in rows:
        if all(cell < 0 for cell in row):
            return True  # We have a row which has all numbers marked

    width = len(rows[0])
    for i in range(width):
        column = [row[i] for row in rows]
        if all(cell < 0 for cell in column):
            return True  # We have a column which has all numbers marked
    return False

    Given a bingo board as a 2D array of integers,
    return if it is now complete
    
Given a bingo board as a 2D array of integers,
return if it is now complete
Given a bingo board as a 2D array of integers return if it is now complete
def is_complete(board):
    rows = board
    for row in rows:
        if all(cell < 0 for cell in row):
            return True  
    width = len(rows[0])
    for i in range(width):
        column = [row[i] for row in rows]
        if all(cell < 0 for cell in column):
            return True  
    return False
def is_complete ( board ) : rows = board for row in rows : if all ( cell < 0 for cell in row ) : return True width = len ( rows [ 0 ] ) for i in range ( width ) : column = [ row [ i ] for row in rows ] if all ( cell < 0 for cell in column ) : return True return False
Given a bingo board as a 2D array of integers,
return if it is now complete
Given a bingo board as a 2D array of integers return if it is now complete
"""
    Given a bingo board as a 2D array of integers,
    return if it is now complete
    """ # We have a row which has all numbers marked # We have a column which has all numbers marked
board