Michael Morale2,702 Points
I'm still stuck on this. Any ideas?
def sillycase(word): word = apples halfway = (len(word) // 2) word.lower([0:halfway]) word.upper([halfway:]) return(word)
Steven Parker179,923 Points
You're close, but you don't want to overwrite the argument right at the beginning. Plus, nothing named "apples" has been defined.
Also, your slice syntax isn't quite right. The brackets with slice parameters need to come after the string they apply to instead of being inside the parentheses of the method call. Those methods don't take arguments anyway.
Then, you'll need to save those slices where you can combine and return them, or make them be part of the return statement directly.