cdsleiden / python-tutorial

Beginner's introduction to programming in Python
https://cdsleiden.github.io/python-tutorial/
3 stars 2 forks source link

Instructions for exercise 7.1 do not match the solution #92

Closed bencomp closed 10 months ago

bencomp commented 1 year ago

Reported by a participant: the exercise has

is_pass should determine whether a given grade is at a pass level (i.e. equal to or higher than 6). This function must return a string value, 'pass' or 'fail'.

The explanation for the exercise in the solution is slightly more specific:

(2) Write a second function which can determine whether a given grade is at a pass level (i.e. higher than 6). This function must return a boolean value, in which 'pass' is true and 'fail' equals false.

We need to harmonise these explanations. I think returning a boolean is more fitting for a function whose name starts with is.

The solution still has the camelCase function names, by the way.