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

The volume of the rectangular prism below is inches cubed
What will result in a decrease of gfr?
find the area of the trapezoid by decomposing it into other shapes. a) 196 cm2 b) 204 cm2 c) 216 cm2 d) 220 cm2
The united states joined its allies in the persian gulf war in order to
What is cardiac arrest? uestion # 1 uestion # 2 uestion #3 luestion #4 Question # 5 When the body does not breath properly When cells in the brain start to die
The percent increase from 18 to 26 is about how much percent?
All Natural Grocer hired Tim to maintain inventory records and Jenny to place orders for new inventory when stocks run low. To ensure that the warehouse can con
Two particles with charges of 2nC and 5nC are separated by a distance of 3m. The charge 2nC is placed on the left. Find the force on charge 2nC
(x^3-3x^2+x-6)/(x²+2)
The table below lists the capacity, in quarts, of four different fish tanks at a pet store.