Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

tcc8m

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

  • one year ago
  • one year ago

  • This Question is Closed
  1. bwCA
    Best Response
    You've already chosen the best response.
    Medals 1

    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

    • one year ago
  2. bwCA
    Best Response
    You've already chosen the best response.
    Medals 1

    or maybe the triple quote in line 28

    • one year ago
  3. rsmith6559
    Best Response
    You've already chosen the best response.
    Medals 0

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

    • one year ago
  4. msmithhnova
    Best Response
    You've already chosen the best response.
    Medals 0

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

    • one year ago
  5. tcc8m
    Best Response
    You've already chosen the best response.
    Medals 0

    Thank you all for your response!

    • one year ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.