Welcome to the Treehouse Community
Looking to learn something new?
Ted Hayali5,403 Points
how i return None within exception block
def add(a,b): try: a = float(a) b = float(b) except ValueError: return else: return a+b
Chris FreemanTreehouse Moderator 67,986 Points
Your solution is very close. Indent the
return statements to be inside the
except blocks accordingly.