Skip to content

Commit 6eff6ea

Browse files
committed
result edited
1 parent ebb2bf5 commit 6eff6ea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

exam_results.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def students_list( Name, Roll_Number,School="GHSS SOGAM" , Class="11th", **Marks
1616
students_list("Frank", 106, Math=45, English=50, Science=40, History=42, Geography=48),
1717
students_list("Grace", 107, Math=70, English=75, Science=65, History=68, Geography=72),
1818
students_list("Henry", 108, Math=55, English=60, Science=50, History=52, Geography=58),
19-
19+
2020

2121
]
2222

@@ -26,7 +26,7 @@ def print_student_result(student):
2626
print(f"Student: {student['name']}, Roll Number: {student['roll_number']}, Class: {student['class']}")
2727
print(f"Marks: {student['marks']}")
2828
print(f"Total Marks: {total_marks} out of {len(student['marks']) * 100}")
29-
print(f"Average Marks: {average_marks:.2f}")
29+
print(f"Marks Percentage: {average_marks:.2f}%")
3030
if average_marks >= 90:
3131
print("Result: Passed with Distinction")
3232
elif average_marks >= 60 and average_marks < 90:

0 commit comments

Comments
 (0)