r/learnmath•
MlKlBURGOS

How would you write this function?

number = 5  # any integer

solution = number for n in range(1, number-1): solution += 1/n

I thought of this, but I don't feel like it's right

Posted Sep 19, 2023, 11:27 AM UTC

14
Loading comments…