LearnPy Hub
← Lists problems
Easy

Sum and Average

Read a list of integers on one line and print their sum and their average (2 decimals) on two lines.

Input

One line of integers.

Output

Two lines.

Sample 1

Input
1 2 3 4
Output
10
2.50

Sample 2

Input
10
Output
10
10.00
solution.py
Output appears here
Sum and Average · Python practice problem · LearnPy Hub