Previous
Iteration
2 / 5
Next
Lists
Hint
Write two functions shift_left
and shift_right
:
- Both functions have one parameter
arr
. shift_right
moves the last element ofarr
to the first position.shift_left
moves the first element ofarr
to the last position.
Help
Solve
Reset
Test results
Test result #
Expected output
Your output