Yes, if your book uses python 2.x, you should also use it.
There have been some changes in python 3.x that made it incompatible with 2.x
Also, note that getting python 2.x doesn't necessarily mean getting an older version.
2.7.4 was released on the same day as 3.3.1
robbrooks101 wrote:Yes it does work, why is that...
This works because print
is a statement in python 2, and a function in python 3.
You need to use parentheses to call the function, but not to use the statement.