person1=int(input("enter the age of the first person:\n "))
person2=int(input("enter the age of the second person: \n"))
person3=int(input("enter the age of the third person: \n"))
if (person1>person2 and person1>person3):
    print("the first person is the oldest")
    if (person2<person3):
        print("the second person is the youngest")
    else :
        print("the third person is the youngest")
elif(person2>person1 and person2>person3):
    print("the second person is the oldest")
    if (person1<person3):
        print("the first person is the youngest")
    else :
        print("the third person is the youngest")
else:
    print("the third person is the oldest")
    if (person1<person3):
        print("the first person is the youngest")
    else:
        print("the third person is the youngest")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: