@@ -18,7 +18,8 @@ def count_failed_students(student_scores: list) -> int:
1818 :param student_scores: list - containing int student scores.
1919 :return: int - count of student scores at or below 40.
2020 """
21- return len ([score for score in student_scores if score <= 40.0 ]) # pylint: disable=R0801
21+ # pylint: disable=R0801
22+ return len ([score for score in student_scores if score <= 40.0 ])
2223
2324
2425def above_threshold (student_scores : list , threshold : int ) -> list :
@@ -30,19 +31,21 @@ def above_threshold(student_scores: list, threshold: int) -> list:
3031
3132 :param student_scores: list - of integer scores.
3233 :param threshold: int - threshold to cross to be the "best" score.
33- :return: list - of integer scores that are at or above the "best" threshold.
34+ :return: list - of integer scores that are at or above the "best"
35+ threshold.
3436 """
35- return [score for score in student_scores if score >= threshold ] # pylint: disable=R0801
37+ # pylint: disable=R0801
38+ return [score for score in student_scores if score >= threshold ]
3639
3740
3841def letter_grades (highest : int ) -> list :
3942 """
4043 Create a list of grade thresholds based on the provided highest grade.
4144
4245 :param highest: int - value of highest exam score.
43- :return: list - of lower threshold scores for each D-A letter grade interval.
44- For example, where the highest score is 100, and failing is <= 40,
45- The result would be [41, 56, 71, 86]:
46+ :return: list - of lower threshold scores for each D-A letter grade
47+ interval. For example, where the highest score is 100, and
48+ failing is <= 40, The result would be [41, 56, 71, 86]:
4649
4750 41 <= "D" <= 55
4851 56 <= "C" <= 70
@@ -56,10 +59,12 @@ def letter_grades(highest: int) -> list:
5659# pylint: disable=R0801
5760def student_ranking (student_scores : list , student_names : list ) -> list [str ]:
5861 """
59- Organize the student's rank, name, and grade information in descending order.
62+ Organize the student's rank, name, and grade information in descending
63+ order.
6064
6165 :param student_scores: list - of scores in descending order.
62- :param student_names: list - of string names by exam score in descending order.
66+ :param student_names: list - of string names by exam score in descending
67+ order.
6368 :return: list - of strings in format ["<rank>. <student name>: <score>"].
6469 """
6570 return [
0 commit comments