https://programmers.co.kr/learn/courses/30/lessons/77484
νμ΄
# νλ‘κ·Έλλ¨Έμ€ 1λ¨κ³ - λ‘λμ μ΅κ³ μμμ μ΅μ μμ
def solution(lottos, win_nums):
answer = [0,0]
rank = [6,6,5,4,3,2,1]
cnt_0 = lottos.count(0)
ans = 0
for x in win_nums:
if x in lottos:
ans += 1
answer = rank[cnt_0 + ans], rank[ans]
return answer