Re: Python basic program problem

2011-06-27 Thread Noah Hall
On Mon, Jun 27, 2011 at 11:18 PM, Amaninder Singh wrote: > Yes, I think I am using 3.0 version. So how much difference is in between > these two? > On Jun 26, 2011, at 11:18 PM, Noah Hall wrote: >> On Mon, Jun 27, 2011 at 8:05 AM, Amaninder Singh >> wrote: >>> Hi, >>> I am fairly new to python,

Re: Python basic program problem

2011-06-27 Thread Andrew Berg
On 2011.06.27 02:05 AM, Amaninder Singh wrote: > Hi, > I am fairly new to python, I am trying to write simple code and It is > giving me syntax error. I am reading a book and following the > directions as it says in the book but I am not sure why it is not > working. Looks like the book you're read

Re: Python basic program problem

2011-06-27 Thread Daniel Kluev
On Mon, Jun 27, 2011 at 6:05 PM, Amaninder Singh wrote: print "this is a test" > SyntaxError: invalid syntax Most likely, you are running python 3.x, while reading python 2.x book. In python 3.x print is now ordinary function, >>> print('hello world') hello world In future, please include

Re: Python basic program problem

2011-06-27 Thread Noah Hall
On Mon, Jun 27, 2011 at 8:05 AM, Amaninder Singh wrote: > Hi, > I am fairly new to python, I am trying to write simple code and It is > giving me syntax error. I am reading a book and following the > directions as it says in the book but I am not sure why it is not > working. Please guide me throu

Python basic program problem

2011-06-27 Thread Amaninder Singh
Hi, I am fairly new to python, I am trying to write simple code and It is giving me syntax error. I am reading a book and following the directions as it says in the book but I am not sure why it is not working. Please guide me through. Any help appreciated. >>> x = 2 >>> if x == 2: print "This i