Boston Python Workshop 3/Friday/Tutorial: Difference between revisions
Content added Content deleted
imported>Jesstess |
imported>Jesstess |
||
Line 669: | Line 669: | ||
* They let us re-use code without having to type it out each time. |
* They let us re-use code without having to type it out each time. |
||
* They take input and possibly produce output (we say they <b>return</b> a value). You can assign a variable to this output. |
* They take input and possibly produce output (we say they <b>return</b> a value). You can assign a variable to this output. |
||
* You call a function by using its name followed by |
* You call a function by using its name followed by its <b>arguments</b> in parenthesis. |
||
For example: |
For example: |