X1252: firstHalf

Complete the following function. Given aString, return the first half of characters in that string (the string "woohoo" yields "woo"). Odd lengths should be rounded down

Examples:

firstHalf("racecars") -> "race"
firstHalf("?Odds and spaces?") -> "?Odds an"

Your Answer:

Reset

Practice a different Python exercise

Feedback

Your feedback will appear here when you check your answer.