The Three Fastest Runners
Data questions · Intermediate · about 7 min
race_100m.csv has each runner's name, house and 100 meter time in seconds. Set answer to a list of the names of the three fastest runners (the smallest times), fastest first, like ["Name1", "Name2", "Name3"]. No two runners have the same time.
Example
The first lines of race_100m.csv:
name,house,seconds Arjun,Red,14.2 Bea,Blue,13.6
race_100m.csv · 16 rows
| name | house | seconds |
|---|---|---|
| Arjun | Red | 14.2 |
| Bea | Blue | 13.6 |
| Caleb | Green | 15.1 |
| Diya | Yellow | 13.1 |
| Eric | Red | 14.8 |
| Freya | Blue | 12.9 |
| Gautam | Green | 13.4 |
| Holly | Yellow | 15.6 |
First 8 of 16 rows.
import pandas as pd
df = pd.read_csv("race_100m.csv")
answer = None
The solution opens after your first Check.