X
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
(e-mail address removed)
http://xahlee.org/PageTwo_dir/more.html
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
(e-mail address removed)
http://xahlee.org/PageTwo_dir/more.html