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 trialNamodh Edirisinghe
2,400 PointsHow to solve this error?
i get an error saying : Couldn't find 'stringcases'. I have no idea why... Any help please?
def stringcases(string1):
uppercase = string1.upper()
lowercase = string1.lower()
capitals = string1.capitalize()
reversedword = string10[::-1]
return uppercase,lowercase,capitals,reversedword
1 Answer
Steven Parker
231,269 PointsYou're very close, but I see two issues:
- the "reversedword" line has a reference to "string10" instead of "string1"
- the "capitalize" method affects only the first word, you want the one that works on every word.