레벨2 문제
해시
def solution(clothes):
dic = {}
for name, kind in clothes:
# 안들어있으면
if kind not in dic:
dic[kind] = []
dic[kind].append(name)
# 들어있으면
else:
dic[kind].append(name)
ssum = 1
for i in dic:
temp = len(dic[i])
ssum *= ( len(dic[i]) + 1)
ssum -= 1
return ssum