Skip to content

KeyError: 'answer' When Accessing Answer Key in score_one_result #47

Open
@abdelazizmohamad11

Description

When completing the questions for the "science" section, the program throws a KeyError: 'answer' in the score_one_result function. This error occurs because the JSON data for some questions does not contain an "answer" key. Without this key, the program is unable to evaluate the user’s response and calculate the score.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions