user_outeput
This commit is contained in:
+2
-2
@@ -33,12 +33,12 @@ def user_input():
|
|||||||
return "input", "grade", subject, category, grade, grade_name
|
return "input", "grade", subject, category, grade, grade_name
|
||||||
|
|
||||||
|
|
||||||
def user_output(subject, categories, average):
|
def user_output(subject, categories, average, average_subject):
|
||||||
print("\n\n In the subject {} are the following categories:".format(subject))
|
print("\n\n In the subject {} are the following categories:".format(subject))
|
||||||
for counter, category in enumerate(categories):
|
for counter, category in enumerate(categories):
|
||||||
print("The average in {} is {} with these grades:".format(category, average[counter]))
|
print("The average in {} is {} with these grades:".format(category, average[counter]))
|
||||||
string = ""
|
string = ""
|
||||||
for grade in categories[category]:
|
for grade in categories[category]:
|
||||||
string += str(grade) + ", "
|
string += str(grade) + ", "
|
||||||
|
|
||||||
print(string + "\n")
|
print(string + "\n")
|
||||||
|
print("The average of {} is {}.".format(subject, average_subject))
|
||||||
|
|||||||
Reference in New Issue
Block a user