Can someone please walk me through this program. Then suggest why it will not work. Thank you!
I am just starting to work on the PS. But at first glance a couple errors in semantics... You're setting the annual_interest_rate equal to .18. Shouldn't these be set as floats, and further, to raw_inputs?? more like this: air = float(raw_input('What is the annual interest rate of your card?')) Not only are you statically setting the operand air to .18 but your also defaulting it to an integer. (someone correct me if my logic is wrong here) Also I am pretty sure your math for the FOR statement is wrong. Should be something more along the lines of balance = bal*(1+ (mir/12))-mmp Again, I just finished L3, and am starting on this my self so I could be entirely wrong... It will be nice to see the people that know what they are talking about answer... And excuse my truncating the operands english.
If you write .18, you're not "defaulting it to an integer" because it's not an integer, it's a float. Otherwise, Neeco is right; you should be getting that info from the user.
looks like it is doing what you asked it ... what is the problem? print statements are useful in trying to figure out what your code is doing what you think it is doing: http://dpaste.com/769634/
Join our real-time social learning platform and learn together with your friends!