Only on problem set 1: Can someone tell me if I'm on the right track/ why I feel like I'm not? This is what I have so far and I'm really unsure of what I'm doing. #Minimum monthly payment = Minimum monthly payment rate x Balance #Interest Paid = Annual interest rate / 12 months x Balance #Principal paid = Minimum monthly payment – Interest paid #Remaining balance = Balance – Principal paid a = raw_input ('Enter the outstanding balance on your credit card:') a_float = float(a) b = raw_input ter the annual credit card interest rate as a decimal:') b_float = float(b) c = raw_input ('Enter the minimum monthly payment rate as a decimal:') c_float = float(c) d = str('Minimum monthly payment:') e = str('Principal paid:') e_int = int(e) f = str('Interest paid:') f_int = int(f) g = str('Remaining balance:') g_int = int(g) for m in range(1-13): d = c*a e = d - f g = a - e
you should use variable names that help to make the code easier to follow. "balance" instead of "a".
Join our real-time social learning platform and learn together with your friends!