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.
Reported by a participant: the exercise has
The explanation for the exercise in the solution is slightly more specific:
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.