reverse_3¶
Given a list of ints length 3, return a new list with the elements in reverse order, so [1, 2, 3]
becomes [3, 2, 1]
.
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.