right_2¶
Given a string, return a “rotated right 2” version where the last 2 chars are moved to the start. The string length will be at least 2.
This exercise was taken from codingbat.com and has been adapted for the Python language. There are many great programming exercises there, but the majority are created for Java.