Need some advice
Robert Brewer
fumanchu at amor.org
Sun Nov 30 22:55:40 EST 2003
Jeff Wagner wrote:
> Are functions in Python another name for subroutines?
No, "subroutine" in other languages is another name for "function" in
Python. :)
You might say Functions in VB are Subs which return values. Functions in
Python are _both_; you don't have to declare a return value if you don't
want to, in which case your function will return the value None.
>>> def noval():
... pass
...
>>> noval()
>>> noval() is None
True
Robert Brewer
MIS
Amor Ministries
fumanchu at amor.org
More information about the Python-list
mailing list