This commit is contained in:
2019-08-02 18:09:46 +02:00
parent 277214e1c3
commit 3c85bbe9bf
3 changed files with 11 additions and 7 deletions
+3 -3
View File
@@ -38,7 +38,7 @@ def user_output(subject, categories, average, average_subject):
for counter, category in enumerate(categories):
print("The average in {} is {} with these grades:".format(category, average[counter]))
string = ""
for grade in categories[category]:
string += str(grade) + ", "
for grade in categories[category][0]:
string += str(grade.grade) + ", "
print(string + "\n")
print("The average of {} is {}.".format(subject, average_subject))
print("The average of {} is {}.".format(subject, average_subject))