I have this line of code in python
print \'hello world\'
against
print (\'hello world\')
can someone tel
You should read what's new in python 3.0:
The print statement has been replaced with a
print()function, with keyword arguments to replace most of the special syntax of the old print statement (PEP 3105).
Backwards Compatibility:
The changes proposed in this PEP will render most of today's print statements invalid. Only those which incidentally feature parentheses around all of their arguments will continue to be valid Python syntax in version 3.0, and of those, only the ones printing a single parenthesized value will continue to do the same thing. For example, in 2.x:
>>> print ("Hello", "world") # without import
('Hello', 'world')
>>> from __future__ import print_function
>>> print ("Hello", "world") # after import
Hello world