Dec-02-2021, 12:15 AM
Not sure what you mean by a line. You have a data structure. Looks like data is a list. It contains tuples of (age, athlete_data), and athlete_data is a dict of forename,surname,time.
You can print any part of it however you want.
You can print any part of it however you want.
athletes = find_fastest_athletes(df,'100m','F',[10,11,12,13,14,15,16]) for age, athlete_info in athletes: print(f"Age:{age} - Info:{athlete_info}")