Oct-27-2018, 04:44 AM
Hi, Chris!
I'm not sure that I have understood you correctly, but
raising an exception is quite simple in Python, e.g.
I'm not sure that I have understood you correctly, but
raising an exception is quite simple in Python, e.g.
def suggest(product_idea): if len(product_idea) <= 3: raise ValueError('The string has too low length (# of chars should be > 3). ') # do some stuff if needed return product_idea + "etc... "