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 triallenielson sousa
2,739 PointsCan anyone post the solution of the "Raise Exception Challenging?" I couldn't figure it out. I am not exactly sure why.
Can anyone post the solution of the code challenging " Raise Exception ". I could not figure it out. I would like to see how it is done properly. I re-watched the video but I couldn't get it to work.
Thanks
2 Answers
Shayne Beernaert
5,014 PointsHey there,
Hope this helps!
def suggest(product_idea):
if len(product_idea) < 3:
raise ValueError
return product_idea + "inator"
KRIS NIKOLAISEN
54,971 PointsClick on Raising Exceptions in the breadcrumbs above
Python > Python Basics > Functions and Looping > Raising Exceptions
and you can see what other students have asked and answered