Adding Across Zero

Python FundamentalsMedium+10 XP+10

Adding Across Zero

A temperature sensor logs every whole number from -4 up. This code adds them up:

What number does it print?

Enter a whole number (it may be negative).

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.