Subroutines
Neil Schemenauer
nas at arctrix.com
Fri Oct 13 02:41:36 EDT 2000
More information about the Python-list mailing list
Fri Oct 13 02:41:36 EDT 2000
- Previous message (by thread): Subroutines
- Next message (by thread): Subroutines
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Oct 13, 2000 at 04:06:11PM +0300, j wrote:
> For example how would a perl subroutine below be in python.
>
> sub myfunc {
> print $_[0];
> }
Clearer? :)
How about:
def myfunc(arg):
print arg
- Previous message (by thread): Subroutines
- Next message (by thread): Subroutines
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list