Generation

generate functionWed, 24 May 2023

Elaborar lo siguiente :1 + 2/1 - 3/2 + 4/3 - 5/4 + . . . - n/m

def f(n,m): if n < m: return 0 return n/m + f(n-1, m+1)

Want to kickstart your project?Use the new AI Studio to create your code