Subroutines

Neil Schemenauer nas at arctrix.com
Fri Oct 13 02:41:36 EDT 2000


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





More information about the Python-list mailing list