Take input of age of 3 people by the user and determine oldest and youngest among them.
a1=int(input("Enter age1: "))
a2=int(input("Enter age2: "))
a3=int(input("Enter age3: "))
if (a1<a2<a3):
print("Oldest is a3")
elif (a1a3):
print("Oldest is a2")
elif (a1>a2>a3):
print("Oldest is a1")
else:
print("All are equal")
This is the code for getting output for the oldest among them, i don’t know what and how to add the code for getting output for the youngest among them. whats will be the code for the youngest?