1
<exercise name = "Hello Name">
2
<desc>You need to write <b>Hello</b> and then your name.</desc>
5
print "Hello <print the contents of the variable 'name' here>."
10
# Sample solution, used to generate test output
12
print " ".join([greeting, name])
15
<!-- Alternatively, <solution src="all_input_test_soln.py" /> -->
16
<case name=""Hello Alice"">
17
<!-- Specify input -->
18
<var name="name" value="'Alice'" />
19
<function pass="All letters are correct, ignoring case" fail="Output contains incorrect characters" default="ignore">
20
<stdout>str.lower</stdout>
22
<function pass="Program contains a print statement" fail="You need to use a print statement" default="ignore">
23
<code type="check">lambda x,y: 'print' in y</code>
25
<!-- Ensures that all outputs match exactly -->
26
<function pass="Exact match" fail="Incorrect characters still" default="ignore">
27
<stdout type="norm">str.strip</stdout>