Python Python Basics Functions and Looping Raise an Exception

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

What am i doing wrong. please help

suggestinator.py
def suggest(product_idea):
    return product_idea + "inator"
    if int(len(product_idea)) < 3:
            raise ValueError("Your entry is too short")
    else:
        return product_idea + "inator"

1 Answer

thanks Joseph