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