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

I'm getting and unexpected indent error on a very basic calculator program for Python 3.3. http://pastebin.com/KJ1eke9S

OpenStudy (anonymous):

http://pastebin.com/KJ1eke9S

OpenStudy (mathmate):

Can you describe a little more in terms of messages or irregularities that occurred during execution? Side question: A try without exception handler would not do you much, would it?

OpenStudy (anonymous):

During execution a dialog box appeared saying unexpected unindent. That's it. The try and exception are so if the user does something incorrect it can rerun the program.

OpenStudy (mathmate):

Did it give a line number of the offending line?

OpenStudy (anonymous):

Yes, on startObj = start()

OpenStudy (mathmate):

Perhaps you could try easing the line to the right, and line up with the last "if".

OpenStudy (mathmate):

or the "try".

OpenStudy (anonymous):

Wait, I see the problem. I had no except line in the start class.

OpenStudy (mathmate):

"Side question: A try without exception handler would not do you much, would it?" That's what I meant!

OpenStudy (anonymous):

Ahah

OpenStudy (anonymous):

I didn't quite get it.

OpenStudy (anonymous):

Now I'm getting and invalid syntax dialogue box on startObj.run()

OpenStudy (anonymous):

Wait, I was messing a parentheses

OpenStudy (mathmate):

@giggitygil So everything is ok now?

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!