anonymous
  • anonymous
i have question about the first hw (sorry, new beginner here): i have these raw_input: balance = float(raw_input("Enter the outstanding balance on your credit card: ")) annualInterestRate = float(raw_input("Enter the annual credit card interest rate as a decimal: ")) minMonthlyPaymentRate = float(raw_input("Enter the minimum monthly payment rate as a decimal: ")) but when i test it, python only shows the first "Enter the outstanding balance on your credit card:" why python didn't ask me other two???
MIT 6.00 Intro Computer Science (OCW)
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
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.
jamiebookeater
  • jamiebookeater
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
Curry
  • Curry
well did you enter a number and press enter?
anonymous
  • anonymous
yes, but python didn't ask my to keep enter the second and third raw_input
Curry
  • Curry
hmm, you might be entering the wrong input. rawinput takes a string and float() converts that to a number. So does the program crash after that first raw input? or does it end successfully? is there an error message?

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
the program do nothing and stand still after i type in the input. let's say i want put 5000 in first BALANCE, should I type 5000 only, or '5000'?
anonymous
  • anonymous
here is my file. please take a look. After I type in 5000 it didn't move on to ask me the second and third raw_input
1 Attachment
anonymous
  • anonymous
are you just pasting that code into the python REPL?
anonymous
  • anonymous
you should save it to a file and execute using: python creditcard.py also you need to be careful with the consistency of your names (totalAmtpaid vs totalAmtPaid)
anonymous
  • anonymous
how do i execute it exactly?? through IDLE?
anonymous
  • anonymous
In the python shell. Go File, New window. then copy your code over, save it and then run the module

Looking for something else?

Not the answer you are looking for? Search for more explanations.