def f(a,b): # a et b sont deux entiers positifs ou nuls if b == 0: return 0 if b == 1: return a return a + f(a, b-1)