Problem 122968 · easy · Phase 01 Prerequisites & Setup

Average of Three

float · division · string formatting

Read three integers, one per line, and print their average rounded to exactly two decimal places.

The average is the sum of the three numbers divided by 3. Print it after the label Average: .

Examples

Input:
1
2
4
Output:
Average: 2.33
Explanation: (1 + 2 + 4) / 3 = 2.3333..., shown with two decimal places.
Input:
5
5
5
Output:
Average: 5.00
Explanation: Even a whole-number average is printed with two decimal places.

Constraints

  • -1000 <= each number <= 1000
  • Always show exactly two digits after the decimal point.

Goals

  • Recognise that / always produces a float, even for whole-number inputs
  • Format a float to a fixed number of decimal places with :.2f
  • Tell the difference between int, float and str values
Starting Python…