Network disconnected
Description
0부터 9까지의 정수가 담긴 리스트 num_list
가 주어질 때, 길이가 10인 0으로 이루어진 리스트 count_list
에 num_list
에 저장된 원소들의 빈도수를 저장하려고 합니다.
num_list
에 정수i
가 있다면, count_list[i]
에 1을 증가시켜 빈도수를 저장하면 됩니다.
만약 num_list
가 [1, 1, 5, 2]
라면 count_list
는 [0, 2, 1, 0, 0, 1, 0, 0, 0, 0]
가 됩니다.
코드가 올바르게 동작하도록 한 줄을 수정해 보세요.
유의사항
출력 코드를 수정하면 채점되지 않습니다.
Question type: Debugging
- In the Debug type question, you have to find and fix the bug in given code
- You can change only one line of the given code
- An error message will be shown in the Result area when you modify more than 2 lines of the given code.
Result
Stop
Result of [Run Test] or [Submit] will be displayed here
내가 제출한 코드가 왜 틀렸는지 프로그래머스 AI에게 물어보세요.
베타 기간 동안에는 한 문제당 한 번만 물어볼 수 있어요.