Creating a function that randomly generates and returns a tuple of…
Question Answered step-by-step Creating a function that randomly generates and returns a tuple of… Creating a function that randomly generates and returns a tuple of two or more positive integers. Use that function’s result in your script to prompt the user with a math question (such as: “How much is 6 times 7?”). Varying the computer’s responses can help hold the student’s attention. Prepare various comments which are displayed for each answer. Possible responses to a correct answer should include ‘Very good!’, ‘Nice work!’ and ‘Keep up the good work!’ Possible responses to an incorrect answer should include ‘No. Please try again.’, ‘Wrong. Try once more.’ and ‘No. Keep trying.’ Choose a number from 1 to 3, then use that value to select one of the three appropriate responses to each correct or incorrect answer. For a correct answer, display the message and ask another question. For an incorrect answer, display the message and let the student try the same question repeatedly until the student finally gets it right. Store the computer’s responses in lists. Use random-number generation to select responses using random list indices. Allow the user to pick a type of arithmetic problem to study e.g., 1 means addition problems only, 2 means subtraction problems only, 3 means multiplication problems only, 4 means 2 division problems only (avoid dividing by 0) and 5 means a random mixture of all these types. Collect data regarding number of exercises correct/incorrect and total exercises per topic. Allow the program to present descriptive statistical information in words/numbers and charts about each student (per user) and all students (all users) using the program Computer Science Engineering & Technology Python Programming Share QuestionEmailCopy link Comments (0)


