Straight forward python code, use slice
class Solution:\n    # @param nums, a list of integer\n    # @param k, num of steps\n    # @return nothing, please modify the nums list in-place.\n    def rotat
    class Solution:\n    # @param nums, a list of integer\n    # @param k, num of steps\n    # @return nothing, please modify the nums list in-place.\n    def rotate(self, nums, k):\n        k %= len(nums)\n        nums[:] = nums[-k:]+nums[:-k]
['Python']