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,
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
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
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
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