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 compound has highest molecular weight : dye, methylene blue, malachite green, potassium?
At the end of dna replication how are the 2 new molecules the same
What is the oh−concentration and ph in each solution? (a) 0.225 m koh, (b) 0.0015 m sr(oh)2?
A ________ investment strategy takes market prices of securities as set fairly. passive active convex interest rate focused
Who in the u.s. is responsible for maintaining money's purchasing power? the senate congress the board of governors of the federal reserve system the federal op
In which horticultural society does/did women hold the highest status? iroquois?
what are the main hearths of the world?
Please help I’m stuck
Two points on a line are given by the ordered pairs (2, 4) and (-6, 7). What type of line is this? horizontal vertical slanted none of these
Substances that do not conduct heat well are Select one: a. liquids b. insulators c. solids d. conductors