quizSubmit.py:
The response variable that should hold the user's response is initialized with a dummy value for now. The code uses json files to collect and hold data from the quiz. The code iterates for each question defined in the first module, appending the user's result along with the question itself into the response.json file.
The questions.json file is organized into modules for specific subjects, in which questions along with the correct answers are defined.
Implemented code to handle quiz submissions.
quizSubmit.py: The
response
variable that should hold the user's response is initialized with a dummy value for now. The code uses json files to collect and hold data from the quiz. The code iterates for each question defined in the first module, appending the user's result along with the question itself into theresponse.json
file.The
questions.json
file is organized into modules for specific subjects, in which questions along with the correct answers are defined.