Python Python Basics Functions and Looping Raise an Exception

Michael Stone
Michael Stone
Python Web Development Techdegree Student 1,705 Points

Please Help Me Find The Issue With My Code!

def suggest(product_idea): if len(product_idea) < 3: raise ValueError("") return product_idea + "inator"

suggestinator.py
def suggest(product_idea):
   if len(product_idea) < 3:
    raise ValueError("")
return product_idea + "inator"

1 Answer

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Check your indentation. Python is pretty picky about indentation. Other than that, your code looks good.