๋ฌธ์ ์ค๋ช ๋ฌธ์ ํ์ด ๊ณผ์ lottos์ ์๋ ๋ฒํธ ์ค win_nums์ ์๋ ๋ฒํธ๊ฐ ์ผ์นํ ๊ฒฝ์ฐ count += 1 ๊ฐ๋ ค์ ธ์๋ ์ซ์ 0์ด ์ ๋ถ ๋ง์ ๊ฒฝ์ฐ(count(0))๋ ์ต๊ณ ์์, ๊ฐ๋ ค์ ธ ์์ง ์๋ ์ซ์๋ง ์ผ์นํ ๊ฒฝ์ฐ๊ฐ ์ต์ ์์ ๋ง๋ ๊ฐ์๊ฐ 0, 1๊ฐ์ผ ๊ฒฝ์ฐ 6์์ด๋ฉฐ, ๋ง๋ ๊ฐ์์ ๋ฐ๋ผ ์์๋ฅผ rank์ ๋ฃ์ด์ค ๋ง๋ ๊ฐ์์ ๋ฐ๋ผ ๊ฐ ๋ฐํ def solution(lottos, win_nums): rank = [6, 6, 5, 4, 3, 2, 1] count = 0 cnt_0 = lottos.count(0) for i in win_nums: if i in lottos: count += 1 return rank[count+ cnt_0], rank[count] - coding test url: http..