Yes I am using python 3.x and that worked. Thank you! @student Please add this as answer, I will accept
– JavaYouthJun 05 '18 at 05:21
1
In python 3.x you have to use print(x). Read the differences between python 2.x and python 3.x on net
– Madhur YadavJun 05 '18 at 05:22
1
For details you can look into https://stackoverflow.com/questions/25445439/what-does-syntaxerror-missing-parentheses-in-call-to-print-mean-in-python/25445440#25445440
– nirajJun 05 '18 at 05:25
This looks like duplicate to link above not sure if you can mark it duplicate.
– nirajJun 05 '18 at 05:31