Question: Using Python Write a function print_simple_stats' with the parameters: numl, num2, num3. Use a string formatting expression with conversion specifiers to output * their product
Write a function print_simple_stats' with the parameters: numl, num2, num3. Use a string formatting expression with conversion specifiers to output * their product and their average * Output each requested value as the floating-point number with 2 digits after the decimal point, which can be achieved as follows: print({:.2f}'.format(your_value)) Ex: If the function is called with the values, 1, 2, 3, the output should be: Product: 6.00 Average: 2.00 I Do NOT include a function call, write only the function definition
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
