Welcome to the Treehouse Community
Looking to learn something new?
T.j. Twilley2,317 Points
Where did I go wrong?
# The first half of the string, rounded with round(), should be lowercased. # The second half should be uppercased. # E.g. "Treehouse" should come back as "treeHOUSE" def sillycase (string): cutter = round(len(string)/2) first = string[:cutter] lcase = first.lower() last = string[cuter:] ucase = last.upper() combined = lcase + ucase return(combined)
Josip Dorvak18,126 Points
You spelt cutter wrong here:
last = string[cuter:]
But it all works for me