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

Ok I am still stuck on PS3 #4. I tried running the solution code to the problem and came across an error message. I attached both the code and the output below. Why is there an unexpected indent error? I don't see how I can change anything.: Code: http://pastebin.com/114FXL5D Output: http://pastebin.com/TYZvTN5D

OpenStudy (anonymous):

sometimes the traceback points to a code location that is just after the actual problem - the triple quote in line 3 does not appear to be indented the same amount as the rest of the function

OpenStudy (anonymous):

or maybe the triple quote in line 28

OpenStudy (rsmith6559):

If you mixed your editing between idle and a good editor, idle converts tabs to spaces, and this can cause some really funky errors.

OpenStudy (anonymous):

If you are using the IDLE editor click on 'Run' - 'Check Module' or 'Alt-X' and hopefully it will highlight the problem whitespace.

OpenStudy (anonymous):

Thank you all for your response!

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!