lms
lms copied to clipboard
Check question based on an expression
Is your feature request related to a problem? Please describe. Moodle allows different type of questions. Two of them, is "Short Answer" and "Numerical" types. The answer is evaluated and marks are given Details are https://docs.moodle.org/404/en/Question_types#Short_Answer
Describe the solution you'd like I would like the Frappe LMS to support this type of question. When creating a question, the user should be able to give a python snippet. If the expression does not generate an exception, the answer is correct. If it generates an exception, then the message with the exception will be shown to user as hint to the correct answer.