Is there a way to simplify the code here using function and loops? I would like to simplify it but not sure how to. Thanks for the help in advance!
age1 = int