class Solution:
def isValidSudoku(self, board: List[List[str]])-> bool:for x in [0,3,6]:for y in [0,3,6]:
b_list =[]for i in range(0,3):
i = x+i
for j in range(0,3):
j = y+j
b_list.append(board[i][j])#print( x, y,i, j, b_list)if board[i][j]!='.' and board[i][j] not in b_list[:-1] and board[i][j] not in board[i][:j] and board[i][j] not in [board[i][j]for i in range(0, i)]:continue
elif board[i][j]=='.':continueelse:return False
return True