S
Sheila King
Here is something that surprised me tonight:
print x
print y
print a
for item in mylist:
print item
SyntaxError: invalid syntax
Why isn't the default value for a printing out when I include list
arguments?
(This is Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on
win32, if that makes a difference.)
I would suspect at first a Python bug, but maybe I'm just not "seeing"
something that I should?
print x
print y
print a
for item in mylist:
print item
2
5
6
7
8 1
2
A 1
2
3
4
5
SyntaxError: invalid syntax
Why isn't the default value for a printing out when I include list
arguments?
(This is Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on
win32, if that makes a difference.)
I would suspect at first a Python bug, but maybe I'm just not "seeing"
something that I should?