We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 699afbb commit f485564Copy full SHA for f485564
LEVEL2/Day1/pocketmon.py
@@ -12,7 +12,7 @@ def solution(nums):
12
pocketmon = [] # 새로운 종류의 폰켓몬을 선택하면 이 리스트에 넣음.
13
for i in nums:
14
try:
15
- if pocketmon.index(i) >= 0: # 겹치면 answer_list에 추가하지 않기
+ if pocketmon.index(i) >= 0: # 겹치면 list에 추가하지 않기
16
continue
17
except:
18
pocketmon.append(i)
@@ -22,4 +22,4 @@ def solution(nums):
22
else:
23
return len(pocketmon)
24
25
- return min(len(nums) / 2, len(pocketmon)) # len()을 활용해서 더 간략하게 수정
+ return min(len(nums) / 2, len(pocketmon)) # len()을 활용해서 더 간략하게 수정
0 commit comments