Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
|
|
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()
|