LearnPy Hub
← Loops problems
Easy

Sum of Inputs

Read n, then n integers, one per line, and print their sum.

Input

n, then n lines.

Output

The sum.

Sample 1

Input
3
1
2
3
Output
6

Sample 2

Input
1
-5
Output
-5
solution.py
Output appears here
Sum of Inputs · Python practice problem · LearnPy Hub