sum_aritmetic_series( exception traceback (most recent call lastin ---- sum_aritmetic_series( in helper( return ( else---- raise exception("argument is not an integer" return helper exceptionargument is not an integer fixing the fibonacci series in [ ]def memoize( )memo {def helper( )if not in memomemo[nf(nreturn memo[nreturn helper arguments [@memoize def fib( )arguments append(nif = return elif = return elsereturn fib( - fib( - [fib(ifor in range( )out[ ][ in [ ]counts {iarguments count(ifor in range(max(arguments)+ )counts out[ ]{ in [ ]sum(counts values()out[ ] there is built-in cache decorator