short | easy python code
\ndef minimumDifference(self, nums: List[int], k: int) -> int:\n        n=len(nums)\n        if n==1 or k==1:\n            return 0\n        nums=sorted(nums)\n
```\ndef minimumDifference(self, nums: List[int], k: int) -> int:\n        n=len(nums)\n        if n==1 or k==1:\n            return 0\n        nums=sorted(nums)\n        least=nums[k-1]-nums[0]\n        for j in range(1,n-k+1):\n            least=min(least,nums[j+k-1]-nums[j])\n        return least\n```
['Python', 'Python3']