Adriex9 / pythonquizz-Montreer_Adrien-DIA5

quizz
MIT License
2 stars 2 forks source link

Inconsistent Language and Potential Answer Conflicts in Quiz Questions #3

Open Bluebloodfr opened 6 months ago

Bluebloodfr commented 6 months ago

Bug Overview

I've noticed a couple of issues in the quiz function that could potentially hinder the user experience:

  1. Inconsistent Language: The quiz questions and instructions are presented in English, but the error message for invalid input is in French. This inconsistency could be confusing for non-French speaking users.
  2. Random Answer Generation: The script generates random numbers for wrong answers, but there's a chance that these random numbers might match the correct answer (other than the intended correct option). This could mislead users or cause confusion during the quiz.

    Suggested Fixes

  3. Language Consistency: It would be beneficial to maintain consistency in language use throughout the script. I suggest translating all user-facing text into one language, preferably English for broader accessibility.
  4. Controlled Answer Generation: To avoid the issue of random answers coinciding with the correct one, we could implement a more controlled method of generating wrong answers. This could involve a predefined set of plausible but incorrect answers for each question. I hope these suggestions are helpful, and I'm looking forward to seeing these improvements in the quiz function
Adriex9 commented 6 months ago

thank you for your answer

  1. Yeah you are right, thank you for this information
  2. You could have been right, but fortunately due to the random.randint range being being out of the right answer, the space of randomly generated false answers and the space occupied by correct responses are disjoint.