(no subject)
crombie
crombie88 at yahoo.com
Fri Jun 22 19:05:26 EDT 2001
newbie question:
trying to type this in:
>>> a, b = 0, 1
>>> while b < 1000:
... print b,
... a, b = b, a+b
...
1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987
but result is this:
>>> while b< 10
SyntaxError: invalid syntax
>>> while b < 10:
... print b
IndentationError: expected an indented block (line 2)
>>> while b < 10:
print b
a, b = b, a+b ...
SyntaxError: invalid syntax
>>> while b < 1000:
... print b,
IndentationError: expected an indented block (line 2)
>>> while b < 1000:
... print b,
SyntaxError: invalid syntax
>>>
anyone know why?
much thx, tc
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
More information about the Python-list
mailing list