Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 106 Online
OpenStudy (anonymous):

I am working on the credit card problem, very first few steps. While does it say minimummonthly_payment is not defined when i run the module? See below: x = float(raw_input("Enter the outstanding balance on your credit card: ")) y = float(raw_input("Enter the annual credit card interest rate as a decimal: ")) z = float(raw_input("Enter the minimum monthly payment rate: ")) print "Month: " + "1" mininummonthly_payment = x * z print "Minimum Monthly Payment: " + minimummonthly_payment

OpenStudy (e.mccormick):

See the difference? mini\(\color{red}{\text{n}}\)ummonthly_payment mini\(\color{cyan}{\text{m}}\)ummonthly_payment

OpenStudy (e.mccormick):

You might also want to try the block code ``` marks when you post here. It helps format the code so we can see spaces properly, and so on. For example, the below is done with a ``` above and below the code on a separate line: ``` def countUp(n): for x in range(n): print x countUp(5) ``` See how the spacing and code highlighting are maintained? Makes it easier to look for issues.

OpenStudy (anonymous):

Ok. Thanks for the tip! I'll make sure to utilize it.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
SnowKitty: Can I get some help please
16 minutes ago 7 Replies 2 Medals
Coyote: Trigonometry
7 minutes ago 3 Replies 1 Medal
Thayes: Listen
1 hour ago 5 Replies 1 Medal
Aubree: Happy birthday @barnbuns! I hope u have a better day!
56 minutes ago 13 Replies 3 Medals
KyledaGreat: How does this sound? Opinions welcome
2 hours ago 3 Replies 2 Medals
xcoledd1: Hey, umm... can anyone help me with an work of mine?
17 hours ago 13 Replies 3 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!