Re: [perl-python] 20050112 while statement

2005-01-13 Thread Charlton Wilbur
> "b" == brianr <[EMAIL PROTECTED]> writes: b> (As a matter of interest, is this sequence of posts intended to b> demonstrate ignorance of both languages, or just one?) Intentional fallacy -- there's no necessary correlation between what he *intends* to do and what he actually succee

Re: [perl-python] 20050112 while statement

2005-01-13 Thread Abigail
Xah Lee ([EMAIL PROTECTED]) wrote on CLIII September MCMXCIII in news:[EMAIL PROTECTED]>: .. # here's a while statement in python. .. .. a,b = 0,1 .. while b < 20: .. print b IndentationError: expected an indented block .. a,b = b,a+b You have already proven you don't know Perl, but

Re: [perl-python] 20050112 while statement

2005-01-13 Thread Steven Bethard
Xah Lee wrote: # here's a while statement in python. a,b = 0,1 while b < 20: print b a,b = b,a+b --- # here's the same code in perl ($a,$b)=(0,1); while ($b<20) { print $b, "\n"; ($a,$b)= ($b, $a+$b); } Because you're posting this to newsgroups, it would be advisable to use only spaces

Re: [perl-python] 20050112 while statement

2005-01-13 Thread Peter Hansen
Steven Bethard wrote: Xah Lee wrote: [some Python code] Because you're posting this to newsgroups, it would be advisable to use only spaces for indentation -- tabs are removed by a lot of newsreaders, which means your Python readers are going to complain about IndentationErrors. Unfortunately, t

Re: [perl-python] 20050112 while statement

2005-01-13 Thread Peter Maas
[EMAIL PROTECTED] schrieb: "Xah Lee" <[EMAIL PROTECTED]> writes: [...] (As a matter of interest, is this sequence of posts intended to demonstrate ignorance of both languages, or just one?) :) This sequence of posts is intended to stir up a debate just for the sake of a debate. It's a time sink. It

Re: [perl-python] 20050112 while statement

2005-01-13 Thread brianr
"Xah Lee" <[EMAIL PROTECTED]> writes: > # here's a while statement in python. > > a,b = 0,1 > while b < 20: > print b > a,b = b,a+b > > --- > # here's the same code in perl > > ($a,$b)=(0,1); > while ($b<20) { > print $b, "\n"; > ($a,$b)= ($b, $a+$b); > } That python code produces a s

Re: [perl-python] 20050112 while statement

2005-01-13 Thread Michael Hoffman
Xah Lee wrote: # here's a while statement in python. > [...] > # here's the same code in perl [...] So? -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

[perl-python] 20050112 while statement

2005-01-13 Thread Xah Lee
# here's a while statement in python. a,b = 0,1 while b < 20: print b a,b = b,a+b --- # here's the same code in perl ($a,$b)=(0,1); while ($b<20) { print $b, "\n"; ($a,$b)= ($b, $a+$b); } Xah [EMAIL PROTECTED] http://xahlee.org/PageTwo_dir/more.html -- http://mail.python.org/m