I&#39;m having trouble with the racket guide. First of all, I havent used it in a little while, so I was surprised when I looked for the guide, and I think it&#39;s new, and I can&#39;t find the old one. <br><br>That&#39;s not my main problem, though. I&#39;m at the section that goes like this:<br>
<span style="color:rgb(0,153,0)"><br></span><div><font color="#009900">A function definition can include multiple expressions for the function’s body. In that case, only the value of the last expression is returned when the function is called. The other expressions are evaluated only for some side-effect, such as printing.<br>
<br>Examples:<br>(define (bake flavor)<br>  (printf &quot;pre-heating oven...\n&quot;)<br>  (string-append flavor &quot; pie&quot;))<br>&gt; (bake &quot;apple&quot;)<br>pre-heating oven...<br>&quot;apple pie&quot;</font><div>
<br>Here&#39;s everything I&#39;ve entered so far.<br><div><br><div><font color="#009900">(define (extract str)</font></div><div><font color="#009900">  (substring str 4 7))</font></div><div><font color="#009900"><br></font></div>
<div><font color="#009900"><br></font></div><div><font color="#009900">(extract &quot;the boy out of the country&quot;)</font></div><div><font color="#009900">(extract &quot;the country out of the boy&quot;)</font></div><div>
<font color="#009900"><br></font></div><div><font color="#009900">(define (bake flavor)</font></div><div><font color="#009900">  (printf &quot;preheating oven..\n&quot;)</font></div><div><font color="#009900">  (string-append flavor &quot; pie&quot;))</font></div>
<div><font color="#009900"><br></font></div><div><font color="#009900">(bake &quot;apple&quot;)</font></div><div><font color="#009900"><br></font></div><div>and I get the error message </div><div><font color="#009900"><br>
</font></div><div><font color="#990000">define: expected only one expression for the function body, but found 1 extra part</font></div><div><font color="#990000"><br></font></div><div>So I try taking out (string-append flavor &quot; pie&quot;) and get a second error message </div>
<div><br></div><div><font color="#990000" style="background-color:rgb(255,255,255)">printf: this function is not defined</font></div><div><br></div><div><br></div><div><span style="background-color:rgb(255,255,255)">I understand that define expects two sections after it (the name it defines and the definition it enters when triggered) so in this case the &quot;string-append&quot; would be the one extra. But I dont understand why the &quot;printf&quot; thing doesn&#39;t work. Nor do I know what the &quot;printf&quot; function does, as it&#39;s not explained in the guide.</span></div>
<div><span style="background-color:rgb(255,255,255)"><br></span></div><div><span style="background-color:rgb(255,255,255)">I tried entering *just* what the guide said to enter, as in copy pasting it in, but still get the same problems.</span></div>
<div><span style="background-color:rgb(255,255,255)"><br></span></div><div><span style="background-color:rgb(255,255,255)">Any help? :(</span></div><div><br></div></div></div></div>