Skip to content

Sarah-Gyamfi/Code-for-French-Quiz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🎉 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!