DOCUMENT();
loadMacros('PGstandard.pl', 'PGML.pl',"MathObjects.pl",
"parserFunction.pl", 'PGtikz.pl', 'niceTables.pl', 'PGcourse.pl');
$showPartialCorrectAnswers = 1;
@mylist = (1,2);
$ans1 = List(@mylist);
BEGIN_PGML
The answer is an empty list
[` X = `][_]{$ans1->cmp(requireParenMatch => 0)}
END_PGML
ENDDOCUMENT();
The error message that I get is:Your answer isn't a number (it looks like a list of numbers)
Which doesn't make sense to me because the answer SHOULD be a list of numbers.
This is a minimal reproducible example. My actual homework is much longer and I originally thought the problem I was having was because the answer is a list of lists, and some of the lists are empty. But in trying to make a min reprex for that, I realized that I just don't understand the list questions at all.