Run
n = 10 answer = 0 i = 1 while i <= N: answer += i i += 1 print(answer)
Output