Computer Science Canada

Random Syntax Errors???

Author:  Nathan4102 [ Tue Mar 26, 2013 5:03 pm ]
Post subject:  Random Syntax Errors???

First day of Python! Woo! I got through quite a bit while at school, and used the python they have on their computers, but now that I've brought my project back home and tried running it, I'm getting syntax errors on all my "s! I've got no clue what I've done wrong, could anyone point me in the right direction? The python I'm using on my computer is "Python 3.3.0 Windows x86 MSI Installer" from http://www.python.org/getit/. I'm using the IDLE, and I have a .txt file opened with it.
Thanks!
Nathan

Author:  Tony [ Tue Mar 26, 2013 5:12 pm ]
Post subject:  RE:Random Syntax Errors???

You should post the actual error / stack trace and possibly the smallest piece of code that will produce the same error.

Author:  Nathan4102 [ Tue Mar 26, 2013 5:15 pm ]
Post subject:  Re: Random Syntax Errors???

I think this is everything you needed:

Posted Image, might have been reduced in size. Click Image to view fullscreen.

Author:  Insectoid [ Tue Mar 26, 2013 5:29 pm ]
Post subject:  RE:Random Syntax Errors???

That's the most useless error report I've ever seen. Post your code and maybe we can find the issue.

Author:  ishidon [ Tue Mar 26, 2013 5:33 pm ]
Post subject:  Re: Random Syntax Errors???

In Python 3 + When printing something you must put it in brackets.
code:

print ("Choices:")


I am guessing you used Python 2.6 at your school (just a guess as my school uses it). You may want to double check what version you are using at school and make sure you install that version at home.

Author:  Nathan4102 [ Tue Mar 26, 2013 5:53 pm ]
Post subject:  RE:Random Syntax Errors???

@Insectoid, The error was just in the print bit, none of the other code was relevant.

@Ishidon, Thanks! I guess we do have python 2.6 at school, I'll download that one at home too.


: