Details
CYB/130 Week 2 Python LAB 3.14: 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
Additional Information
Special Price | $3.00 |
---|
Product Tags
Use spaces to separate tags. Use single quotes (') for phrases.
Check items to add to the cart or select all
-
CYB/130 Week 2 Python LAB 3.11: Input and formatted output: Right-facing arrow
Regular Price: $8.00
Special Price $3.00
-
CYB/130 Week 2 Python LAB 3.12: Phone number breakdown
Regular Price: $8.00
Special Price $3.00
-
CYB/130 Week 2 Python LAB 3.13: Input and formatted output: House real estate summary
Regular Price: $8.00
Special Price $3.00
-
CYB/130 Week 2 Python LAB 3.25: Smallest number
Regular Price: $8.00
Special Price $3.00
-
CYB/130 Week 2 Python LAB 3.27: Exact change
Regular Price: $8.00
Special Price $3.00
You have no items in your shopping cart.