## WeBWorK Main Forum

### Answer checker for a set of binary strings

by Lijuan Cao -
Number of replies: 0

I am working on a problem where the expected answer is a set of binary strings, such as {00, 01, 10, 11}.  I noticed that WeBWorK answer checker automatically converts 00 to 0 and 01 to 1 and mark {0, 1, 10, 11} correct. Is there a way to turn this off so that only {00, 01, 10, 11} is marked correct? My code is as follows. Thanks.

Context("Numeric");
$answer = Compute("{00, 01, 10, 11}"); ########################### # Main text BEGIN_PGML Let [f: \{0, 1\}^2 \to \{0, 1\}^3]. The domain of [f] is [__________________________________________]. END_PGML ############################ # Answer evaluation$showPartialCorrectAnswers = 1;