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

Gianko15 Group Title

Hello everybody, I have a problem at edX site, I've written my code, and it succeed on Python Shell, but at the time I wrote it in the edX, it gets me back an error.

  • 2 years ago
  • 2 years ago

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

    Here's and image from the python shell, check my english please.

    • 2 years ago
    1 Attachment
  2. TuringTest Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    how about your code?

    • 2 years ago
  3. Gianko15 Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    Should I put an image of my code here??

    • 2 years ago
  4. TuringTest Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    you are sure it is giving the right answers, but edX is not taking it?

    • 2 years ago
  5. Gianko15 Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    yes, I don't know how to probe it, should I put an image of my code too here?? or through M.P ?

    • 2 years ago
  6. TuringTest Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    you can send it to me pm I guess

    • 2 years ago
  7. Gianko15 Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    sorry I said mp (spanish from PM). Let me check frist the variable, beacuse I assumed like the enter value from the rates were 0.02 instead of 2, you think it can be an error there?

    • 2 years ago
  8. TuringTest Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    Bueno, vivo en méxico. Aunque soy de los estados unidos te puedo entender, entonces podrias platicar conmigo en español.

    • 2 years ago
  9. TuringTest Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    Yo prefereria hablar en inglés de todos modos :)

    • 2 years ago
  10. Gianko15 Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    jajaja que pequeño es el mundo, yo soy de Perú, ok let's talk in english, I want to improve it, i think I found the reason, look how I initialized my variables. balance = 5000 annualInterestRate = 0.18 monthlyPaymentRate = annualInterestRate/12 Minimummonthlypaymentrate = 0.02 totalpaid = 0 updatedbalance = 0 Minimummonthlypayment = 0 I assumed that - for example- annualInterestRate would be enter as 0.18 instead of 18 (%)

    • 2 years ago
  11. TuringTest Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    why do you have Minimummonthlypayment = 0 and updatedbalance = 0 ?

    • 2 years ago
  12. TuringTest Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    I think I need to see your code to really get the picture

    • 2 years ago
  13. Gianko15 Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    hahaha I know those are just initialized values from the python code, but what I want you to see is that I create a mess, and I wrote that mess on the edX site.

    • 2 years ago
  14. TuringTest Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    wait, did you write the value balance = 5000 into the code you entered into edX ?

    • 2 years ago
  15. TuringTest Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    If you assigned actual parameters to balance and annualInterestRate in the python shell that you use to enter your answer into edX that is the problem. It says in the instructions that the site will assign values to balance and annualInterestRate automatically. Simply do not define them in your answer and you should be okay.

    • 2 years ago
  16. MicroBot Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    exsactly as Turing says. You must not assign actual parameters to balance and annualInterestRate. Gl!

    • 2 years ago
  17. Gianko15 Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    And the other variables I use let's say "totalpaid" should be initialized??

    • 2 years ago
  18. MicroBot Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    yes everything else is to be initialized:)

    • 2 years ago
  19. Gianko15 Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    I'll try it again and I'll tell you both, if it work.

    • 2 years ago
  20. Gianko15 Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    This are the correct bind to values right?? balance = 5000 annualInterestRate = 18 monthlyPaymentRate = 2

    • 2 years ago
  21. Gianko15 Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    Well, after 5 attempts, I see the option "See full output", the values were 5000, 0.04 I think and 0.02, not 4 or 2 like I thought! thank you both for the help!! now another question. It says correct, but I have to wait untill I get the "Problem 1: Paying the minimum" mark as done, right?

    • 2 years ago
  22. TuringTest Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    it should be recorded as soon as you get the green checkmark check the "progress" section to make sure you got your 10 points for the exercise and move on to part 2

    • 2 years ago
  23. Gianko15 Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    Yeah it is now! great :P I'll continue later, Thanks to all!

    • 2 years ago
  24. TuringTest Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    welcome!

    • 2 years 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.