
Implement rotate_right, a helper that rotates a list to the right.
rotate_right([9, 8, 7, 6, 5], 2)Expected result
[6, 5, 9, 8, 7]For your own tracking. Tests grade your code.
rotate_right([4, 5, 6], 4)Expected result
[6, 4, 5]Expected files
right_rotate.pyAllowed functions
None. Write every helper yourself.

v0.40: Create exercises. Challenge the community.
Meet Studio →Implement rotate_right, a helper that rotates a list to the right.
rotate_right([9, 8, 7, 6, 5], 2)Expected result
[6, 5, 9, 8, 7]For your own tracking. Tests grade your code.
rotate_right([4, 5, 6], 4)Expected result
[6, 4, 5]Expected files
right_rotate.pyAllowed functions
None. Write every helper yourself.

Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.