My simple python code
class Solution:\n        def rotate(self, nums, k):\n            while k > 0:\n                nums.insert(0, nums.pop())\n                k -= 1
    class Solution:\n        def rotate(self, nums, k):\n            while k > 0:\n                nums.insert(0, nums.pop())\n                k -= 1
['Python']