Python Invalid Syntax Error.

Computerchap

Honorable
Nov 2, 2013
3
0
10,510
Recently, on Python (Turtle) my when I try to run something a Syntax error will come up on the 2 in 3.2 in Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information. If I delete it it does it for the 3, and so on. What do I do? Is this a common bug?
 
Solution
A common syntax error in Python is due to the fact that the "print" function changed between versions 2 and 3. Statements such as:

print "Hello World"

Now have to be written as:

print("Hello World")

This can cause problems if following old tutorials.

Ijack

Distinguished
A common syntax error in Python is due to the fact that the "print" function changed between versions 2 and 3. Statements such as:

print "Hello World"

Now have to be written as:

print("Hello World")

This can cause problems if following old tutorials.
 
Solution