~azzar1/unity/add-show-desktop-key

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 &lt;print the contents of the variable 'name' here&gt;."
]]>
    </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="&quot;Hello Alice&quot;">
        <!-- 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="&quot;Hello Bob&quot;">
        <!-- 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>