Question: use python 3. Design a function called print_average that takes three floating point numbers and prints the average of the three numbers, rounded to one
use python
3. Design a function called print_average that takes three floating point numbers and prints the average of the three numbers, rounded to one decimal place. Example output: The average of the three numbers is 1.2
4. Design a function called print_is_factor that takes two integers 1 and 2 and determines whether 1 is a factor of 2 (ie. 1 can be multiplied by another whole integer to get 2.) If 1 is a factor of 2, the function should print: X is a factor of Y - where represents the value of 1, and represents the value of 2 If 1 is not a factor of 2, the function should print: X is not a factor of Y - where represents the value of 1, and represents the value of 2 Example output for print_is_factor(2,8): 2 is a factor of 8 Preconditions: 1 > 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
