{% extends "base.html" %} {% block title %}Quiz Result: {{ module_name }} — Python 108{% endblock %} {% block content %}
{{ '🏆' if passed else '📚' }}
{{ score }}/{{ total }}
{{ pct }}%
{% if passed %} You passed! Well done 🎉 {% else %} Not quite — {{ pass_mark - score }} more correct answer{{ 's' if (pass_mark - score) != 1 else '' }} needed to pass. Keep studying! {% endif %}
{{ module_name }}
{% if xp_earned %}
+{{ xp_earned }} XP earned!
{% endif %}
{{ score }}
Correct ✓
{{ total - score }}
Wrong ✗
{{ pct }}%
Score
{{ pass_mark * 10 }}%
Pass mark

Answer Review

{% for q in questions %} {% set i = loop.index0 %} {% set chosen = answers[i] if i < answers|length else -1 %} {% set is_correct = (chosen == q.answer) %}
Q{{ i + 1 }} {{ '✓ Correct' if is_correct else '✗ Wrong' }}
{{ q.q }}
{% for opt in q.options %} {% set j = loop.index0 %}
{{ ['A','B','C','D'][j] }} {{ opt }} {% if j == q.answer %} ✓ correct {% endif %} {% if j == chosen and not is_correct %} your answer {% endif %}
{% endfor %}
💡 {{ q.explanation }}
{% endfor %}
↺ Retake quiz ← Dashboard
{% endblock %} {% if new_badges %}
🎉 New Badge{{ 's' if new_badges|length > 1 else '' }} Unlocked!
{% for b in new_badges %}
{{ b.icon }} {{ b.name }}
{% endfor %}
{% endif %}