Re: Awful book warning: How to think like a (Python) programmer - non-working examples

2010-02-08 Thread Andrej Mitrovic
On Feb 8, 10:14 pm, David Malcolm 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 ">>> > > prin

Re: Awful book warning: How to think like a (Python) programmer - non-working examples

2010-02-08 Thread David Malcolm
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

Re: Awful book warning: How to think like a (Python) programmer - non-working examples

2010-02-08 Thread Andrej Mitrovic
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

Re: Awful book warning: How to think like a (Python) programmer - non-working examples

2010-02-08 Thread Robert Kern
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 o

Re: Awful book warning: How to think like a (Python) programmer - non-working examples

2010-02-08 Thread Benjamin Kaplan
On Mon, Feb 8, 2010 at 3: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 > Let me guess, you're using

Awful book warning: How to think like a (Python) programmer - non-working examples

2010-02-08 Thread Dave Peterson
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