Editor

Pass Percentage

Data questions · Intermediate · about 6 min

results.csv has each student's name and exam mark out of 100. A student passes with a mark of 33 or more. Set answer to the percentage of students who passed, rounded to 1 decimal place, written as a percent (like 62.5, not 0.625).

Example

The first lines of results.csv:

name,marks
Aditi,45
Bilal,33
results.csv · 24 rows
namemarks
Aditi45
Bilal33
Clara28
Dev67
Esha52
Femi36
Grace74
Harsh39

First 8 of 24 rows.

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