In this post we talk about minimum and squares, first, you need to import the math library. After we need to wrote the functions to use , at the end of declaring the functions you will have to put return the value, in this case, you need 2:
- def minimum_three(x, y, z): # returns the value that is smallest of x, y and z
- def sum_squares(x, y, z): # returns the value of the sum of squares of x, y, z
After need to declaring variable and ask the user the numbers we need to calculate, and the end you need to print the results .
This is the program:
This is the results:
Deja un comentario