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

What is the sum of 3
Which element of medieval literature does the disappearance of the sword into the lake represent? an adventure story a memorable deed the supernatura
What is non-point source pollution, and why is this kind of pollution hard to monitor and control? From what source do most Americans get their water for every
Please help me understand this
Read the passage. Excerpt from “What Makes a Car Run?” (1) How the Gasoline Engine Works (2) All the parts of a car engine work together. An important part o
- 1–8+9÷ - 1 answer this plz
What is si unit of time?
Which statement is true
what is the best buy 6 oz for $0.90, 10 oz for $1.10 or 16 oz for $1.44
PLEASE HELP IM STUCK ON THIS I STUDIED AND I STILL DONT GET IT I ASKED TEACHERS BUT THEY WONT HELP PLZ HELP Match the terms to the correct descriptions. this t