Python - summation


def summation(num):
    if num == 1:
        return 1
    else:
        return num + summation(num-1)

n = int(input('please fill in an integer number :'))
ans = summation(n)
print('the result is :', ans)

English writing practice 2025-5/11

After graduating from university and working for several years, I developed the mindset that a job should be related to one’s interests. Peo...