Python 풀이
def counter(data):
if data == 1 or data == 0:
return 6
else:
return 7 - data
def solution(lottos, win_nums):
result = []
answer = [j for i in win_nums for j in lottos if i == j]
DownCnt = len(answer)
zeroCnt = lottos.count(0)
UpCnt = DownCnt + zeroCnt
result = [counter(UpCnt), counter(DownCnt)]
return result