✔️  Python || Clean and easy code || Simple if else ✔️
\nclass Solution:\n    def findLonely(self, nums: List[int]) -> List[int]:\n        if(len(nums)==1):return nums\n        nums.sort()\n        print(nums)\n    
```\nclass Solution:\n    def findLonely(self, nums: List[int]) -> List[int]:\n        if(len(nums)==1):return nums\n        nums.sort()\n        print(nums)\n        res = []\n        for i in range(len(nums)):\n                if i == 0 and nums[i] != nums[i+1] and nums[i]+1 != nums[i+1]:\n                    res.append(nums[i])\n                \n                if i == len(nums) - 1 and nums[i] != nums[i-1] and nums[i] != nums[i-1]+1:\n                    res.append(nums[i])\n\n                if(0<i<len(nums)-1 and nums[i] != nums[i+1] and nums[i] != nums[i-1]  and nums[i] != nums[i+1]-1 and nums[i] != nums[i-1]+1):\n                    res.append(nums[i])\n                \n        return res\n```
['Python']