Adriex9 / pythonquizz-Montreer_Adrien-DIA5

quizz
MIT License
2 stars 2 forks source link

Fixed language inconsistency and answer generation in quiz #4

Open Bluebloodfr opened 7 months ago

Bluebloodfr commented 7 months ago

Overview

This pull request addresses the issues identified in the quizz.py script, where there was a mix of English and French in user prompts and a potential for randomly generated incorrect answers to inadvertently be correct.

Changes Made

  1. Language Consistency: All user-facing texts, including prompts and error messages, have been standardized to English. This ensures a consistent and clear user experience.
  2. Controlled Answer Generation: Modified the way incorrect answers are generated for quiz questions. Instead of using a random number, which could accidentally match the correct answer, a set of predefined incorrect answers has been implemented for each question.

    Testing

    The changes have been tested to ensure that:

The quiz now only communicates in English. No randomly generated answer coincides with the correct answer.

Conclusion

These changes aim to improve the clarity and reliability of the quizz.py script. I believe these modifications enhance the overall user experience and maintain the integrity of the quiz game.

Looking forward to any feedback or further suggestions.