Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 19 Online
OpenStudy (jackjasper):

I've done the first part of Problem Set 1, although I did it a little differently, but when I do the same mathematical functions I get a SyntaxError. I've gotten a SyntaxError when I typed ProblemSet 2. It highlighted the 2. What's the problem here. I'm using Python 2.7, I've got 3.4. I don't get it and where do you send the results of the problems.

OpenStudy (anonymous):

hi jack i have only just started my self , so i could not say for 100 percent. Might it be an identing error , a space that is not meant to be there. you can post your code you have with the attach file and then other students can give feedback. As far as i am aware there is not formal work checked by teachers as its all for free.

OpenStudy (e.mccormick):

When do you get the syntax error? On what command? And are you sure you are using the 2.7 and not the 3.4?

OpenStudy (anonymous):

usually when I get an error like that it's because there's an unclosed parenthesis or quotation somewhere before it for example print ("Hello World!" x = 3 you'd see a syntax error at x even though the actual problem is that there is no closing parenthesis at the end of the print statement above it

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!