"="로 split하고 계산, 숫자화 비교 같으면 O 아니면 X
def solution(quiz):
return list(map(lambda x: "O"if eval(x.split("=")[0]) == int(x.split("=")[1]) else "X", quiz))
def valid(equation):
equation = equation.replace('=', '==')
return eval(equation)
def solution(equations):
return ["O" if valid(equation) else "X" for equation in equations]