question about functions

chris patton chrispatton at gmail.com
Fri Apr 15 00:44:48 EDT 2005


Hi everyone.

I have a question about passing arguments to python functions. Is there
any way to make this job act like Perl?

sub my_funk {

print "the first argument: $_[0]\n";
print "the second argument: $_[1]\n";  }

In other words, can I call the arguments from a list?




More information about the Python-list mailing list