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
| name | marks |
|---|---|
| Aditi | 45 |
| Bilal | 33 |
| Clara | 28 |
| Dev | 67 |
| Esha | 52 |
| Femi | 36 |
| Grace | 74 |
| Harsh | 39 |
First 8 of 24 rows.
import pandas as pd
df = pd.read_csv("results.csv")
answer = None
The solution opens after your first Check.