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!