코딩테스트/프로그래머스
def solution(s): answer = True li="" for st in s: li += st if li[-2:] =="()": li = li[:-2] if len(li) > 0: answer=False return answer