# DAT/210 Week 4 Python LAB 5.20: Simple statistics

\$ 7

DAT/210 Week 4 Python LAB 5.20: Simple statistics

Given 4 floating-point numbers. Use a string formatting expression with conversion specifiers to output their product and their average as integers (rounded), then as floating-point numbers.
Output each rounded integer using the following:
print( ‘{:.0F}’.format(your_value))
Output each floating-point value with three digits after the decimal point, which can be achieved as follows:
print( ‘{:.3F}’.format(your_value))

Ex: If the input is:
8.3
10.4
5.0
4.8
the output is:
2072 7
2071.680 7.125

main.py
numl = float(input())
num2 = float(input())
num3 = float(input())
num4 = float(input())
”’ Type your code here. ”’

946 in stock

SKU: DAT210WK4LAB5P20 Category:

## Description

DAT/210 Week 4 Python LAB 5.20: Simple statistics

Given 4 floating-point numbers. Use a string formatting expression with conversion specifiers to output their product and their average as integers (rounded), then as floating-point numbers.
Output each rounded integer using the following:
print( ‘{:.0F}’.format(your_value))
Output each floating-point value with three digits after the decimal point, which can be achieved as follows:
print( ‘{:.3F}’.format(your_value))

Ex: If the input is:
8.3
10.4
5.0
4.8
the output is:
2072 7
2071.680 7.125

main.py
numl = float(input())
num2 = float(input())
num3 = float(input())
num4 = float(input())
”’ Type your code here. ”’

## Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.