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

deerbane

I am having trouble with problem 2 on homework one. I have the code all done, but it doesn't like one of my variables... https://gist.github.com/anonymous/6116595

  • 8 months ago
  • 8 months ago

  • This Question is Open
  1. S.Campbell
    Best Response
    You've already chosen the best response.
    Medals 0

    You don't say what line you get the error on, but you should check carefully the spelling of the variable name(s). I would guess that Python would give a "name not defined" error on either line 11 or line 16. It doesn't appear that the variable used on those lines will have been assigned a value.

    • 8 months ago
  2. AlbionsRefuge
    Best Response
    You've already chosen the best response.
    Medals 1

    while (remainder > 0.0): -- tt looks like remainder also hasn't been defined before it is used

    • 8 months ago
  3. petew71
    Best Response
    You've already chosen the best response.
    Medals 0

    I was thinking the same as above. We work through the program, get to the while loop, and say ' while remainder...' Well, there is not a remainder object in existence yet, so the programs logic grinds to a halt !

    • 8 months 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.