Dannyar608 commited on
Commit
ed8a781
·
verified ·
1 Parent(s): 8a19c8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -74,7 +74,8 @@ def learning_style_quiz(*answers):
74
  if i < len(learning_style_answers):
75
  options = learning_style_answers[i]
76
  if ans in options:
77
- style = style_count_map[options.index(ans)]
 
78
  scores[style] += 1
79
  best = max(scores, key=scores.get)
80
  return best.capitalize()
 
74
  if i < len(learning_style_answers):
75
  options = learning_style_answers[i]
76
  if ans in options:
77
+ index = options.index(ans)
78
+ style = style_count_map[index]
79
  scores[style] += 1
80
  best = max(scores, key=scores.get)
81
  return best.capitalize()