You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>There are not currently any exercises for this chapter. It is included here as a subchapter for consistency with other chapters.</p>
4
+
<exercise>
5
+
<statement>
6
+
<p>
7
+
This exercise will let you practice displaying information. Write a program that prints following:
8
+
</p>
9
+
<ul>
10
+
<li>Your name.</li>
11
+
<li>Your favorite color.</li>
12
+
<li>Your favorite word, in double quotes.</li>
13
+
<li>Your favorite poem, at least three lines long (If your favorite poem is longer than ten lines, give only the first three to ten lines.)</li>
14
+
<li>The author of the poem. The name should be indented four spaces and preceded by a hyphen and a space. If you don't know who wrote the poem, use “Anonymous” as the author.</li>
15
+
</ul>
16
+
17
+
<p>Use complete sentences and blank lines for readability. To print a blank line, use:</p>
18
+
<programlanguage="python">
19
+
<input>
20
+
print()
21
+
</input>
22
+
</program>
23
+
24
+
<p>The parentheses are required, even though there is nothing between them. If you don't believe me, leave them out and see what the output looks like!</p>
25
+
26
+
<p>Here is what the output of a possible solution looks like:</p>
0 commit comments