There are differences between python 2.7.x and 3.x in terms of syntax, etc. So yeah, the exercises are written in python 2.7 and runs optimally on that version (I'm not sure if it'll compile successfully on Python 2.6 or lower). But maybe if you want some more challenge maybe you can try changing the code to match that of python 3 syntax and then compile it.
Best of luck!
I am new to the Google python exercises. I was trying to get started up with them and the first thing I did (run the hello.py script) failed. It appears that it was written for 2.7, doesn't work under Python 3.2 and I didn't see any obvious note to that effect.
(The specific problem with that script is paren's missing on print call.)
--
You received this message because you are subscribed to the Google Groups "Python GCU Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-gcu-for...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Oh I see, from what I read at many sites and books the thing is that most of python app out there still uses python 2.7 and therefore tutorials tend to teach python in the 2.7 version, I also vaguely remember a person stating that some modules are not compatible with python 3 and so on... So yeah, I think that's the reason (at least partially).
I am new to the Google python exercises. I was trying to get started up with them and the first thing I did (run the hello.py script) failed. It appears that it was written for 2.7, doesn't work under Python 3.2 and I didn't see any obvious note to that effect.
(The specific problem with that script is paren's missing on print call.)
raw_input(question)
input(question)