Skip to content

Commit f485564

Browse files
authored
Update pocketmon.py
1 parent 699afbb commit f485564

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LEVEL2/Day1/pocketmon.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def solution(nums):
1212
pocketmon = [] # 새로운 종류의 폰켓몬을 선택하면 이 리스트에 넣음.
1313
for i in nums:
1414
try:
15-
if pocketmon.index(i) >= 0: # 겹치면 answer_list에 추가하지 않기
15+
if pocketmon.index(i) >= 0: # 겹치면 list에 추가하지 않기
1616
continue
1717
except:
1818
pocketmon.append(i)
@@ -22,4 +22,4 @@ def solution(nums):
2222
else:
2323
return len(pocketmon)
2424

25-
return min(len(nums) / 2, len(pocketmon)) # len()을 활용해서 더 간략하게 수정
25+
return min(len(nums) / 2, len(pocketmon)) # len()을 활용해서 더 간략하게 수정

0 commit comments

Comments
 (0)