I installed the PyCharm and python on my computer and trying to write this simple piece of code but I get error.
for i in range(10):
x = 0.1*i
print( x )
print( x / ( 1 - x * x ) )
The error is:
File "C:/WinPython-2.7.6.2-64/python-2.7.6.amd64/Lib/site-
packages/ib/opt/wrapper_v5.py", line 50
print errormsg
^
SyntaxError: Missing parentheses in call to 'print'
Process finished with exit code 1
Do I need any header statements like in C++. I am coming from C++ and Matlab background.