# len()과 set() 삼항연산자 활용 def solution(nums): answer = len(set(nums)) if len(set(nums)) < (len(nums) / 2) else (len(nums) / 2) return answer
# min(), len(), set() 활용 def solution(ls): return min(len(ls)/2, len(set(ls)))