Python3 print output not working properly

I am using Python 3.2.2

>>> s = 'hhh' >>> print s SyntaxError: invalid syntax >>> print(s) hhh >>> print 2*2 SyntaxError: invalid syntax >>> print(2*2) 4 

Why do I need to use print("...") for printing? If I do not complain about "SyntaxError".

+7
source share
1 answer
+21
source

All Articles