Multiplication function with recursion in Python
You are trying to call n(m+1) in your elif and else block, since you say n is an integer, this is the problem, you should be calling mult() function recursively sending n and m+1 or m-1 as parameters. Another issue is that you should convert the result of n – mult(n, m+1) to negative before … Read more