Skip to content

Commit

Permalink
function docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
thraxil committed Apr 6, 2022
1 parent 14fcddd commit 0bad2e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gradefetcher/gradefetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@


def grade_from_list(grades):
"""take a list of integers and calculate grade from them"""
if len(grades) > 1:
total_grade = sum(grades)
grade = int(truediv(total_grade * 100, len(grades)))
Expand Down

0 comments on commit 0bad2e8

Please sign in to comment.