> "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
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
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
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
[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
"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
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
# 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