Code:
def sumTo(n):
    sum = 0
     for i in range(1, n+1):
       sum = sum + i
return sum
hi with the code above can someone please walk me through what is actually happening with n is equal to say 10 and the output is 55?

many thanks!