---

Python4Kids New Tutorial: Functions (or The Right Place for an Argument)

[ Thanks to Brendan Scott for this
link. ]

“I have a secret to tell you. I have been cutting some
corners in some of the earlier tutorials. Wherever you saw these
-> () I was sneaking a function in under your nose, without
actually telling you about them. Here is a sample function:

>>> def justContradiction(argument):
...     return 'Yes I did'
...
>>> justContradiction("You did not")
'Yes I did'
>>> justContradiction("didn't")
'Yes I did'
>>>


Complete Story

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis