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 trialkristianemil
4,632 PointsHow come this Python Basic Challenge isn't true?
String size more/less than 5
def just_right(bom):
if len(bom) < 5:
print("Your string is too short")
elif len(bom) > 5:
print("Your string is too long")
else:
return True
3 Answers
james south
Front End Web Development Techdegree Graduate 33,271 Pointsthe challenge asks you to return the statements not print them.
Josue Ipina
19,212 PointsYou don't have to print the message, just return it :)
kristianemil
4,632 Pointsyeez, I didn't know - return - could do that. Thanks guys!