🐍 PROJET 03

Quiz Python
Bases de la prog

10 questions sur les fondamentaux de Python.
Chaque réponse est expliquée en détail.

❓
10
Questions
💡
100%
Explications
🔀
∞
Aléatoire
Nombre de questions
📋 Algorithme Ă  implĂ©menter
ALGORITHME Quiz
VAR questions, choisies, score, index

DEBUT
choisies ← MELANGER_ET_CHOISIR(questions, n)
score ← 0 ; index ← 0

TANT QUE index < TAILLE(choisies) FAIRE
q ← choisies[index]
Afficher q.question + MELANGER(q.choix)
Lire reponse_utilisateur
SI reponse_utilisateur = q.reponse ALORS
score ← score + 1
Afficher "✅ Correct !"
SINON
Afficher "❌ Faux — bonne rĂ©ponse : " + q.reponse
FIN SI
Afficher q.explication
index ← index + 1
FIN TANT QUE
Afficher "Score : " + score + " / " + TAILLE(choisies)
FIN
Question 1 / 7
✅ 0 ❌ 0
Quelle est la bonne réponse ?
🏆
score