-print "blah" doesn't work
-oops, print has become a function, so it should be print("blah")
-raw_input("input something") didn't work
-oops. raw_input has been renamed to input in Python 3
Don't make beginners jump through a firey ring . They usually won't tell you it's py2 or py3. But try your best to give an matching answer.
So how to figure it out which version a newbee used ?
Newbee questions often have print and/or input in them. So let's look at them:
-input instead of raw_input ---> weak hint at Python3. Unfortunately quite some newbees use input in py2 when they should have used raw_input.
-print with brackets ---> strong hint at Python3. While possible in py2 no one does there.
-print without brackets ---> guaranteed python2. It wouldn't work in python3.
-input and a print with brackets ---> almost guaranteed python3.
-raw_input ---> guaranteed python 2. raw_input doesn't exist in py3.
This post has been edited by atraub: 02 July 2011 - 11:49 AM