Solutions will be available when this assignment is resolved, or after a few failing attempts.
first_half returns the "first" half of a string (pretty obvious, right?). So, if you invoke
first_half('abcdef') you should get
'abc' as a result. But what happens if the string has an odd number of characters like the following example?
first_half('abcXdef') (7 characters). In that case,
first_half should include the character in the middle; the result should be:
For this assignment you'll have to check the length of the string and handle the even/odd cases.
Make sure you return your result!