Re: [perl-python] 20050116 defining a function

2005-01-17 Thread Tad McClellan
Ala Qumsieh <[EMAIL PROTECTED]> wrote: > Xah Lee wrote: > *plonk* Man, you are way behind the curve. I did that over 3 years ago! [1] [1] Message-ID: <[EMAIL PROTECTED]> I followed the link in that post on a hunch, and found he says himself that he is a troll. Go figure... --

Re: [perl-python] 20050116 defining a function

2005-01-17 Thread Chris Mattern
Xah Lee wrote: > errata: > > * the variables in the perl section should be declared inside the > subroutine. > * the @_[0] should've been $_[0] > > thanks for Dave Cross for pointing them out. > > * the Mathematica Apply should be Select... > Xah > [EMAIL PROTECTED] > http://xahlee.org/PageTw

Re: [perl-python] 20050116 defining a function

2005-01-17 Thread Xah Lee
errata: * the variables in the perl section should be declared inside the subroutine. * the @_[0] should've been $_[0] thanks for Dave Cross for pointing them out. * the Mathematica Apply should be Select... Xah [EMAIL PROTECTED] http://xahlee.org/PageTwo_dir/more.html -- http://mail.python.

Re: [perl-python] 20050116 defining a function

2005-01-17 Thread Fredrik Lundh
Ala Qumsieh wrote: > > © my $n= @_[0]; > > Do you ever test your code before making fun of yourself in front of millions? this perl usability study is getting more and more interesting. who needs television? -- http://mail.python.org/mailman/listinfo/python-list

Re: [perl-python] 20050116 defining a function

2005-01-16 Thread Ala Qumsieh
Xah Lee wrote: © my $n= @_[0]; Do you ever test your code before making fun of yourself in front of millions? *plonk* --Ala -- http://mail.python.org/mailman/listinfo/python-list

[perl-python] 20050116 defining a function

2005-01-16 Thread Xah Lee
© # the following is a example of defining © # a function in Python. © © def fib(n): © """This prints n terms of a sequence © where each term is the sum of previous two, © starting with terms 1 and 1.""" © result=[];a=1;b=1 © for i in range(n): © result.append(b) ©