Update app.py
Browse files
app.py
CHANGED
@@ -19,9 +19,9 @@ def check(answers, questions_data):
|
|
19 |
results = []
|
20 |
for i, (answer, question_data) in enumerate(zip(answers, questions_data), start=1):
|
21 |
if answer == question_data['correct_answer']:
|
22 |
-
result = f"{i}: ✔"
|
23 |
else:
|
24 |
-
result = f"{i}: ✖️ ({question_data['wrong_answer_text']})"
|
25 |
results.append(result)
|
26 |
if i < len(questions_data): # Добавляем разделительную линию, кроме последнего элемента
|
27 |
results.append("___\n\n")
|
|
|
19 |
results = []
|
20 |
for i, (answer, question_data) in enumerate(zip(answers, questions_data), start=1):
|
21 |
if answer == question_data['correct_answer']:
|
22 |
+
result = f"## {i}: ✔"
|
23 |
else:
|
24 |
+
result = f"## {i}: ✖️ ({question_data['wrong_answer_text']})"
|
25 |
results.append(result)
|
26 |
if i < len(questions_data): # Добавляем разделительную линию, кроме последнего элемента
|
27 |
results.append("___\n\n")
|