Arithmetic operators · 15 / 18 Exercise Easy

Average

Objective

Write a Python program that calculates the arithmetic measurement of 4 factors entered by the user, one for each line.

Instructions

  1. Request the first factor from the user.
  2. Request the second factor from the user.
  3. Request the third factor from the user.
  4. Request the fourth factor from the user.
  5. Calculate the arithmetic mean of the four factors.
  6. Print the result of the arithmetic mean.
Input
4
6
8
2
Output
5.0

Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.

Start exercise