https://numbas.mathcentre.ac.uk/question/40681/josh-s-copy-of-decide-if-variable-is-binomial-or-p/embed/