코딩테스트 연습성격 유형 검사하기
def solution(survey, choices): mbti ={'R':0,'T':0,'C':0,'F':0,'J':0,'M':0,'A':0,'N':0} point = {1:3, 2:2, 3:1, 4:0, 5:1, 6:2, 7:3} mbti_data = [('R','T'),('C','F'),('J','M'),('A','N')] answer='' for test in zip(survey,choices): mbti_point = point[test[1]] if test[1] 4: mbti[test[0][1]]+=mbti_point for type1,type2 in mbti_data: answer += type2 if m..