๐ French Vocabulary Quiz
Test your French vocabulary with this fun command-line quiz!
Answer 25 randomly selected multiple-choice questions and see how well you know your French words!
Features
-
25-question quiz (adjustable)
-
Multiple-choice: a, b, c, d, or e
-
Instant feedback for answers
-
Random questions each run
-
Displays final score and percentage
๐ป Installation
- Make sure you have Python 3 installed.
- Clone this repository:
Ensure you have quiz_data.py with questions defined like this:
questions = [ ("What is the French word for 'apple'?", "a", "a) pomme b) orange c) banane d) raisin e) cerise"), ("Translate 'cat' into French.", "b", "a) chien b) chat c) cheval d) souris e) oiseau"), ...
]
๐ How to Play
Run the quiz. Youโll see a welcome message like this:
Instructions: Answer 25 by typing a,b,c,d or e and pressing enter
Then answer the questions as they appear:
WHAT IS THE FRENCH WORD FOR 'APPLE'? a) pomme b) orange c) banane d) raisin e) cerise Answer: a Correct! Score: 1 out of 1
After completing all questions, the final score is displayed:
Final Score: 20 out of 25 (80.00% correct)
โ๏ธ Customization
- To change the number of questions, modify desired_question_count in main.py.
- Add new questions: update quiz_data.py with additional tuples.
- Shuffled questions: order is random every time you play.
๐ก Tips
- Make sure to type lowercase letters (a, b, c, d, or e) โ answers are case-insensitive.
- Have fun! ๐ Try to beat your previous score!
๐ค Contribution
Feel free to:
- Add more questions
- Improve formatting or instructions.
- Share your version with others.
๐ License
This project is open-source. Use it, modify it, and have fun learning French!