def silly(a_name_I_picked_at_random): # well, not quite
...
...
silly(42)
42
The name a_name_I_picked_at_random is like a "placeholder" inside the
function for whatever input we gave to the function. And *that* can be
any object
So you can have silly say something serious like:
def silly(a_name_I_picked_at_random): # well, not quite
def silly(this_is_serious):
But I get an error!
Traceback (most recent call last):
File "C:\Python24\saved\tmp1.py", line 7, in -toplevel-
silly(this_is_serious)
NameError: name 'this_is_serious' is not defined
But you can have silly say something silly and also say something serious right? If so.... how?
args has confused me, but I'm slowly picking it up.
Thanks Brian, Jeff, Liam for your help.
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor