Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Chap 6 Q2]
def prod(a,b,p=0):
p+=a
if b==1:
return p
return prod(a,b-1,p)
print(prod(7,5))
print(prod(8,9))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment