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 trialYoung Gon Kwon
Courses Plus Student 1,426 PointsPlease support me: I have no clue why it says "Try again".
Hello. I am guessing that the message "Bummer :Try again" is because of the 'word' in just_right(word).
Could you tell me what is wrong in the function?
Thank you previously!
def just_right(word):
count = len(list(word))
if count < 5:
print("Your string is too short")
if count > 5:
print("Your string is too long")
else:
return(True)
2 Answers
Bapi Roy
14,237 PointsThe challenge is asking you to return value not print them. Hope it helps you.
Moderator Edit: Moved response from a Comment to Answer Sections, as it provides an answer and can be upvoted and/or marked Best Answer.
Young Gon Kwon
Courses Plus Student 1,426 PointsA ha~~!!! Thank you Rapi!