nums.sort() i = 0 for i in range(len(nums)-1): if nums[i] == nums[i+1]: i = i + 2 else: return nums[i]
Could someone please explain why this code doesn\'t work? The logic