One liner in Python3
\nclass Solution:\n    def rotate(self, nums: List[int], k: int) -> None:\n        """\n        Do not return anything, modify nums in-place instead.\n        "
```\nclass Solution:\n    def rotate(self, nums: List[int], k: int) -> None:\n        """\n        Do not return anything, modify nums in-place instead.\n        """\n        k = k % len(nums)\n        nums[:] = nums[-k:] + nums[:-k]\n```
['Python', 'Python3']