I have been learning Python on Codecademy.com and transferred a project that worked on the site (Battle Ship for those who used the site) and now I’m getting a syntax error with part of my code. On the site it runs smoothly.
The problem is when I take a list of strings and use join on them to display the game board.
result = " ".join(row)
print result
It is giving the error on the print result. On the site, the code was one line but I broke it down to see what was giving the error. Currently I have python 3.3 installed. Could something have changed between the version of Python interpreters that may have cause this?
In Python 3.x,
printis a function, so try: