Python for loop print error -


for in range(10):     x = 0.1*i     print x     print x/(1-x*x) 

i'm trying print results out using loop, says syntax error: missing parentheses in call 'print'.

i'm using python 3.4 , i'm new python.

the error message crystal clear, isn't it? print function missing parentheses needed function call:

print(x) 

python 2 had print statement syntax print x correct; python 3 has changed this. should learning python python 3 specific resource, example python tutorial.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -