summaryrefslogtreecommitdiff
path: root/docs/sample_questions.xml
diff options
context:
space:
mode:
Diffstat (limited to 'docs/sample_questions.xml')
-rw-r--r--docs/sample_questions.xml8
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/sample_questions.xml b/docs/sample_questions.xml
index cad205b..53c76f8 100644
--- a/docs/sample_questions.xml
+++ b/docs/sample_questions.xml
@@ -10,11 +10,13 @@ and returns the factorial of the number.
For example fact(3) -> 6
</description>
<points>2</points>
-<language>python</language>
+<type>python</type>
<test>
assert fact(0) == 1
assert fact(5) == 120
</test>
+<options>
+</options>
</question>
<question>
@@ -27,12 +29,14 @@ returns the square of the argument
For example sqr(3) -> 9.
</description>
<points>1</points>
-<language>python</language>
+<type>python</type>
<test>
import math
assert sqr(3) == 9
assert abs(sqr(math.sqrt(2)) - 2.0) &lt; 1e-14
</test>
+<options>
+</options>
</question>