Page 7: Very first example doesn't compile: syntax error
Pate 11: 2nd example: syntax error
Page 12, printing digits: syntax error
Page 13, printing a number: syntax error
page 14, statements: syntax error
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Feb 8, 2010 at 3:36 PM, Dave Peterson inva...@gmail.com wrote:
Page 7: Very first example doesn't compile: syntax error
Pate 11: 2nd example: syntax error
Page 12, printing digits: syntax error
Page 13, printing a number: syntax error
page 14, statements: syntax error
Let me guess,
On 2010-02-08 14:36 PM, Dave Peterson wrote:
Page 7: Very first example doesn't compile: syntax error
Pate 11: 2nd example: syntax error
Page 12, printing digits: syntax error
Page 13, printing a number: syntax error
page 14, statements: syntax error
This book was written for the 2.x versions
The book covers Python 2.x syntax.
You might have downloaded Python 3.1, which has different syntax then
Python 2.x. From what I can tell, the first example on page 7 is
print 1 + 1.
Try issuing this command:
print(1 + 1)
If everything goes well, and you get '2' as the answer, then you're
On Mon, 2010-02-08 at 12:53 -0800, Andrej Mitrovic wrote:
The book covers Python 2.x syntax.
You might have downloaded Python 3.1, which has different syntax then
Python 2.x. From what I can tell, the first example on page 7 is
print 1 + 1.
Try issuing this command:
print(1 + 1)
If
On Feb 8, 10:14 pm, David Malcolm dmalc...@redhat.com wrote:
On Mon, 2010-02-08 at 12:53 -0800, Andrej Mitrovic wrote:
The book covers Python 2.x syntax.
You might have downloaded Python 3.1, which has different syntax then
Python 2.x. From what I can tell, the first example on page 7 is