Boston Python Workshop 3/Friday/Tutorial: Difference between revisions

Content added Content deleted
imported>Jesstess
imported>Jesstess
Line 664: Line 664:
<b>Step 3: return something</b>
<b>Step 3: return something</b>


If you want to be able to assign a variable to the output of a function, the function has to <b>return something</b> using the <code>return</code> keyword.
If you want to be able to assign a variable to the output of a function, the function has to <b>return that output</b> using the <code>return</code> keyword.


<pre>
<pre>