bardan5389 bardan5389
  • 08-11-2022
  • Computers and Technology
contestada

write the definition of a function named max that has three integer parameters and returns the largest of the three parameters.

Respuesta :

makavellys makavellys
  • 14-11-2022

Answer:

def max(x,y,z):

if (x>z and x>y):

return (x)

elif (y>x and y>z):

return y

else:

return z

Explanation:

Answer Link
lhmarianateixeira
lhmarianateixeira lhmarianateixeira
  • 14-11-2022

Using the knowledge in computational language in python it is possible to write a code that  write the definition of a function named max that has three integer parameters and returns the largest of the three parameters.

Writting the code:

def max(x,y,z):

if (x>z and x>y):

return (x)

elif (y>x and y>z):

return y

else:

return z

See more about python at brainly.com/question/12975450

#SPJ1

Ver imagen lhmarianateixeira
Answer Link

Otras preguntas

to come to an end a. cease b. elevate c. cast d. concise
what times what equals -36 and adds up to -5
How many inches are in 4ft. and 10in.
A nation governed by another nation on behalf of the League of Nations. A. Trenches B. Mandates C. Stalemate D. Kaiser
Glycerol and other organic compounds with an -ol ending are called
Which fraction represents the ratio 9 to 6 in simplest form? (Points : 1) 6 _ 9 3 _ 2 9 _ 2 1 _ 6
Fritz atended band practice for 5/6 hour. Then he went home and practiced for 2/5 as long as band practice. Home many minutes did he practice at home?
show the calculation ? is 7/10 of 2 kilometers?
30 girls and boys have planned for a picnic. There is a ratio of 3 girls to 7 boys. How many boys are there?
what is 17.148 in expanded form