#sums all the numbers from 0 to n def calcSum(n): if n > 0: n = n + calcSum(n - 1) return n sum = calcSum(10) print("sum = ",sum)