Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMichael Morale
2,702 Pointssillycase
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)
1 Answer
Steven Parker
231,275 PointsYou'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.
Michael Morale
2,702 PointsMichael Morale
2,702 PointsI got it! This is what I did: