#!/usr/bin/env python3
# -*- coding: utf-8 -*-


def rotate(nums, k):
    k = k % len(nums)
    nums[:] = nums[-k:] + nums[:-k]
    print(nums)

rotate([1, 2, 3, 4, 5, 6, 7], 3)

e1ee583471aaf3b7a98f71a29fa27e603109f8d6
<mask token>

def rotate(nums, k):
    k = k % len(nums)
    nums[:] = nums[-k:] + nums[:-k]
    print(nums)


<mask token>

def rotate(nums, k):
    k = k % len(nums)
    nums[:] = nums[-k:] + nums[:-k]
    print(nums)


rotate([1, 2, 3, 4, 5, 6, 7], 3)

#!/usr/bin/env python3
# -*- coding: utf-8 -*-


def rotate(nums, k):
    k = k % len(nums)
    nums[:] = nums[-k:] + nums[:-k]
    print(nums)

rotate([1, 2, 3, 4, 5, 6, 7], 3)
