first_half¶
Given a string of even length, return the first half. So the string “WooHoo” yields “Woo”.
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.