shift_left¶
Return a list that is “left shifted” by one – so {6, 2, 5, 3} returns {2, 5, 3, 6}. You may modify and return the given list, or return a new list.
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.