Exercises / eval
Pass rate
pass_rate(rows) where each row is {pass: bool}. Print pass_rate of [T, T, F] as a fraction string and a float.
Live Pythonpython
Output
Run to execute this in your browser. Nothing is sent to a server.
Exercises / eval
pass_rate(rows) where each row is {pass: bool}. Print pass_rate of [T, T, F] as a fraction string and a float.
Run to execute this in your browser. Nothing is sent to a server.