>I was wondering if you can check my answers for the first one and help me get a start with the second one
The first one looks fine. Your problems with the second one makes me wonder.
>It's more complicated than what I am used to.
So basically anything that has more than one branch of execution is too much for you. You're looking at three branches: the ages are equal, x is less than y, and x is greater than y. Do you know how to use an if..else?
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
Check equal case, if not equal then, if a is older than b declare a oldest otherwise declare b older.
pyTony
pyMod
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852