Ok, here goes the first point: In Python 3, print
is a function (like input
, and others), not a statement (like for
, while
, yield
, etc.). So, you have to replace these lines:
print "Hello world"
print "Some other stuff?"
with these others:
print("Hello world")
print("Some other stuff")
I don’t know about doing that (I always run my code from a cmd prompt), but as far as I know, if you want to run your code with Python 3, you may have to replace /usr/bin/python
with /usr/bin/python3
.