tutorial example
Ruben Charles
rubencharles at gmail.com
Sat Nov 12 08:55:43 EST 2005
On 11/12/05, Max Erickson <maxerickson at gmail.com> wrote:
>
> Not in python.
>
> For example, what would you call the following?
>
> def rsum(n, m):
> print n+m
> return n+m
>
>
> In python a method is callable attached to an object. A function is a
> callable object constructed with a def statement.
You are right, i was trying to explain the concept outside the objects.
PD: I would call your example: a function. Without the return
declaration, a routine or a method.
More information about the Python-list
mailing list