n_twice¶
Given a string and an int n, return a string made of the first and last n chars from the string. The string length will be at least n.
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.