Write a function, mystery, that takes a String, str, and ret…
Write a function, mystery, that takes a String, str, and returns only the first half. You can assume the input string will be of even length. Examples: mystery(‘WooHoo’) should return: ‘Woo’mystery(‘HelloThere’) should return: ‘Hello’mystery(‘abcdef’) should return: ‘abc’
Read Details