Skip to content

Latest commit

Β 

History

History
100 lines (56 loc) Β· 1.89 KB

File metadata and controls

100 lines (56 loc) Β· 1.89 KB

πŸŽ‰ 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

  1. Make sure you have Python 3 installed.
  2. 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:


French Vocabulary Quiz

Instructions: Answer 25 by typing a,b,c,d or e and pressing enter

Ready? Bonne Chance!

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!