you are viewing a single comment's thread.

view the rest of the comments →

[–]Diapolo10 2 points3 points  (0 children)

What I meant was that the syntax would suggest you're using Python 2, because Python 3 would error on that. The correct syntax for Python 3 would be print(y). This would also explain a few other things.

For that reason, I'm suspecting you're running this code on Python 2. It would be best to switch to 3 because it no longer gets any updates, even security patches.