input: from typing import List
  
  def generate_chessboard(size: int) -> List[str]:
      """ Generate a chessboard pattern of a given size. The board should be represented
      as a list of strings where each string is a row in the board. Each cell in the
      board should be either '#' or ' ' depending on whether the sum of its row and column
      indices is even or odd.
      >>> generate_chessboard(7)
      ['# # # #', ' # # # ', '# # # #', ' # # # ', '# # # #', ' # # # ', '# # # #']
      """
output:     board = []
      for i in range(size):
          row = ''
          for j in range(size):
              if (i + j) % 2 == 0:
                  row += '#'
              else:
                  row += ' '
          board.append(row)
      return board