Editor

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
namescore
Aarav14
Bella17
Carlos12
Divya19
Ethan15
Fatima18
George11
Hiro16

First 8 of 15 rows.

import pandas as pd
df = pd.read_csv("quiz.csv")
answer = None
The solution opens after your first Check.