Anonymous user
Boston Python Workshop 3/Friday/Tutorial: Difference between revisions
Boston Python Workshop 3/Friday/Tutorial (view source)
Revision as of 00:13, 16 June 2011
, 13 years ago→Writing Functions
imported>Jesstess (→Types) |
imported>Jesstess |
||
Line 648:
Parameters should have names that usefully describe what they are used for in the function.
We've used the words <b>parameters</b> and <b>arguments</b> seemingly interchangeably to reference the input to functions. The distinction isn't really important right now, but if you're curious: in function signatures the input is called parameters, and when you are calling the function the input is called arguments.
<b>Step 2: do useful work inside the function</b>
|