Unable to run some code in atom

Some code python console output is correct but atom out put was very different .

Something like this

print("*", end ="")
^
SyntaxError: invalid syntax

py2 or py3? Different syntax for print.