Neurolingua commited on
Commit
7fb13b9
1 Parent(s): f5d1bbb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -216,7 +216,7 @@ def calculate_score_and_grades():
216
 
217
  # Calculate total score and maximum possible score
218
  total_score = sum(int(mark[0]) for mark in marks)
219
- max_possible_score = int(max_marks)
220
 
221
  # Prevent division by zero
222
  if max_possible_score == 0:
 
216
 
217
  # Calculate total score and maximum possible score
218
  total_score = sum(int(mark[0]) for mark in marks)
219
+ max_possible_score = int(max_marks)*len(marks)
220
 
221
  # Prevent division by zero
222
  if max_possible_score == 0: