[Tutor] functions in Python

Payal Rathod payal-python at scriptkitchen.com
Mon Apr 17 17:42:13 CEST 2006


Hi,
I am now reading Alan's tut on Python, before that I have read a few other tuts too.
But I am not getting functions exactly. I mean what is the difference between,

def func():
        ....

and

def func(x):
        ....

When to use which? (please do not say "returns a value" for I do not understand the meaning
of the same)

With warm regards,
-Payal


More information about the Tutor mailing list