Welcome to the Treehouse Community
Looking to learn something new?
How do you get this to work?
It won't let me pass and I don't know what I have to add.
def just_right(characters): while len(characters) < 5: print("Your sting is too long") else: if len(characters) > 5: print("You sting is too short") else: if len(characters) = 5: return True
You're on the right track but need to make some changes.
You don't need a while loop so start by removing that and replacing it with an if statement.
Then instead of doing
Use the elif
elif #conditional statement
Then after your if statement and elif statement, end with and else statement that returns True
You also need to return strings, no need to print anything in this challenge. So under each if, elif, and else should be a return that returns a plain string or True at the very end.
please explain more about the returns a plain string or True at the very end.