Anonymous user
Boston Python Workshop 3/Friday/Tutorial: Difference between revisions
Boston Python Workshop 3/Friday/Tutorial (view source)
Revision as of 00:50, 17 June 2011
, 13 years ago→Writing Functions
imported>Jesstess |
imported>Jesstess |
||
Line 631:
<pre>
length = len("Mississippi")
</pre>
Running this assigns the
We can write our own functions to encapsulate bits of useful work so we can reuse them. Here's how you do it:
|