STACK: How do I enter list as answer?

STACK: How do I enter list as answer?

by Evgeniy Grishenko -
Number of replies: 1

Often math problems have several solutions. It would be convenient to enter solutions separated by commas and get them as a list. Is there such an input type in STACK? 

Algebraic input type allows to enter the list in square brackets, but it is difficult and inconvenient for students. It is necessary to explain to students that the list is entered in square brackets. Students often make mistakes.

Text area input type allows to enter the list line by line, but that's not intuitive either.

I tried to split and parse the entered string, but this function is forbidden.

How can I solve the problem?

Average of ratings: -
In reply to Evgeniy Grishenko

Re: STACK: How do I enter list as answer?

by Christopher Sangwin -
Picture of Particularly helpful Moodlers Picture of Plugin developers
The only way for students to enter a list is using correct list syntax, i.e. with square brackets. I suggest you use the "syntax hint" feature.