1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<problem name = "Hello Name">
<desc>You need to write <b>Hello</b> and then your name.</desc>
<partial>
<![CDATA[
print "Hello <print the contents of the variable 'name' here>."
]]>
</partial>
<solution>
<![CDATA[
# Sample solution, used to generate test output
greeting = "Hello"
print " ".join([greeting, name])
]]>
</solution>
<!-- Alternatively, <solution src="all_input_test_soln.py" /> -->
<case name=""Hello Alice"">
<!-- Specify input -->
<var name="name" value="'Alice'" />
<function desc="Match case insensitive" default="ignore">
<stdout>str.lower</stdout>
</function>
<!-- Ensures that all outputs match exactly -->
<function desc="Match exactly" default="match"/>
</case>
<case name=""Hello Bob"">
<!-- Specify input -->
<var name="name" value="'Bob'" />
<function desc="Match case insensitive" default="ignore">
<stdout>lambda x:x.lower()</stdout>
</function>
<function desc="Match exactly" default="ignore">
<stdout/>
</function>
</case>
</problem>
|