Welcome to the Treehouse Community
Looking to learn something new?
What is the wrong !!!
What is the wrong in my code , it generate Bummer! NameError:name 'just_righ' is not defined... Why!!!
def just_righ(n): if len (n) < 5: print("Your string is too short") elif len (n) > 5: print("Your string is too long") else: return True
def just_right(n): if len (n) < 5: return "Your string is too short" elif len (n) > 5: return "Your string is too long" else: return True
There was never a word about printing the strings :) Also you missspelled the defenition name "just_right" you missed a "t".
But you understand, how the program should work and thats important. A lot of people think they should print something in this challange