Python for loop print error -
this question has answer here:
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
Post a Comment