stephaniesetiawan stephaniesetiawan
  • 14-04-2021
  • Computers and Technology
contestada

Write a Python code to take input of age of three people by user and determine youngest people among them

Respuesta :

ezioassasin55
ezioassasin55 ezioassasin55
  • 14-04-2021

Answer:

# Take Ages

person1 = eval(input("Enter age of person 1 : "))

person2 = eval(input("Enter age of person 2 : "))

person3 = eval(input("Enter age of person 3 : "))

# check youngest

if person1 < person2 and person1 < person3:

print("Person 1 is youngest")

elif person2 < person1 and person2 < person3:

print("Person 2 is youngest")

elif person3 < person1 and person3 < person2:

print("Person 3 is youngest")

Answer Link

Otras preguntas

Which of the following techniques could best reduce the harmful effects of overfishing if it were to be widely adopted by the fishing industry?Increased use of
Which of the following neurons correspond to the gustatory-salivary reflex's afferent and efferent components, respectively
ID # the structure(s) below that are: CARBOHYDRATES SATURATED FATTY ACID POLYPEPTIDE CHAIN
A survey is taken of a single neighborhood in a town to determine the average income per household in the town. Pick
For what purposes do politicians generally use the Internet quizlet?
Why do you think criollos and mestizos resented the peninsulares in New Spain?
Is Dr. Rank in love with Nora?
Which of the following functions could possibly operate without needing any input parameters? O average() sum() O random() O sqrt()
What does Mr. Hyde represent?
can someone post the back of the paper on Quiz 3-1 Parallel Lines, Transversals, and Special Angle Pairs