You should return, not print.
return
print
Nobody's argued about the ranking except you. And there's a lot shorter, O(1) solution which works for any possible and impossible ages of the father and son, so it's your mistake overcomplicating the task.
O(1)
Loading collection data...
You should
return
, notprint
.Nobody's argued about the ranking except you. And there's a lot shorter,
O(1)
solution which works for any possible and impossible ages of the father and son, so it's your mistake overcomplicating the task.