input: Write a python function to check if a player has won in a Tic Tac Toe game.
  assert win_check([' ', 'X', 'X', 'X', ' ', ' ', ' ', ' ', ' ', ' '], 'X') == True
  assert win_check([' ', ' ', ' ', ' ', 'O', 'O', 'O', ' ', ' ', ' '], 'O') == True
  assert win_check([' ', ' ', ' ', ' ', ' ', ' ', ' ', 'X', 'X', 'X'], 'X') == True
  assert win_check([' ', 'O', ' ', ' ', 'O', ' ', ' ', 'O', ' ', ' '], 'O') == True
  assert win_check([' ', ' ', ' ', 'X', ' ', 'X', ' ', ' ', 'X', ' '], 'X') == True
output: def win_check(board, marker):
      win_conditions = [
          [1, 2, 3], [4, 5, 6], [7, 8, 9],  # rows
          [1, 4, 7], [2, 5, 8], [3, 6, 9],  # columns
          [1, 5, 9], [3, 5, 7]              # diagonals
      ]
      
      for condition in win_conditions:
          if board[condition[0]] == board[condition[1]] == board[condition[2]] == marker:
              return True
      
      return False