프로그래머스 | Python | Hash | 성격 유형 검사하기 (Lv.1)
https://school.programmers.co.kr/learn/courses/30/lessons/118666 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr def solution(survey, choices): # 성격 유형 점수를 저장할 딕셔너리 personality_scores = {char: 0 for char in "RTCFJMAN"} # 선택지에 따른 점수 매핑 score_map = {1: 3, 2: 2, 3: 1, 4: 0, 5: 1, 6: 2, 7: 3} # 각 질문을 순회하며 점수 부여 for (first, second), choice in zip(..
2025. 2. 19.