Top of the Quiz
Data questions · Beginner · about 4 min
quiz.csv has each student's name and quiz score out of 20. Set answer to the name of the student with the highest score, as text written exactly as in the file. Only one student has the top score.
Example
The first lines of quiz.csv:
name,score Aarav,14 Bella,17
quiz.csv · 15 rows
| name | score |
|---|---|
| Aarav | 14 |
| Bella | 17 |
| Carlos | 12 |
| Divya | 19 |
| Ethan | 15 |
| Fatima | 18 |
| George | 11 |
| Hiro | 16 |
First 8 of 15 rows.
import pandas as pd
df = pd.read_csv("quiz.csv")
answer = None
The solution opens after your first Check.