Ace school

with brainly

  • Get help from millions of students
  • Learn from experts with step-by-step explanations
  • Level-up by helping others

A community for students.

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

MIT 6.00 Intro Computer Science (OCW)
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Join Brainly to access

this expert answer

SIGN UP FOR FREE
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
or maybe the triple quote in line 28
If you mixed your editing between idle and a good editor, idle converts tabs to spaces, and this can cause some really funky errors.

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

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

Not the answer you are looking for?

Search for more explanations.

Ask your own question