From 0bad2e837a72470cba114f157aeac4b920e679a5 Mon Sep 17 00:00:00 2001 From: Anders Pearson Date: Tue, 5 Apr 2022 10:43:23 +0100 Subject: [PATCH] function docstring --- gradefetcher/gradefetcher.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gradefetcher/gradefetcher.py b/gradefetcher/gradefetcher.py index 71a92fa..e4aeb39 100644 --- a/gradefetcher/gradefetcher.py +++ b/gradefetcher/gradefetcher.py @@ -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)))