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 trialDelmar Alvarez Hernandez
2,150 PointsHow do you apply the character #??
def suggest(product_idea):
if product_idea < 3:
raise ValueError ("It has to be more than 3 characters long!")
return product_idea + "inator"
try:
product_idea = input("What is the name of your product? ")
except ValueError as err:
print( "Ohh no, it has to be more than 3 character long!!.. Try again...")
print("{}".format(err))
2 Answers
KRIS NIKOLAISEN
54,972 PointsIf you mean character count use the length function len().
Delmar Alvarez Hernandez
2,150 PointsThank you Kris, I did the challenge 😎🤟