Re: [Tutor] TypeError: range() integer end argument expected, got float.

2013-11-29 Thread Steven D'Aprano
On Fri, Nov 29, 2013 at 02:24:49PM -0500, spine...@aol.com wrote: > Hi > > > Newbie at this. I am getting this error: > TypeError: range() integer end argument expected, got float. Note carefully that the error here is with the range() function. In your code, you have: > for payment in ran

Re: [Tutor] TypeError: range() integer end argument expected, got float.

2013-11-29 Thread Dominik George
Hi, > Using python 7.3 I think we must update 'import antigravity' to say something about python-driven flux capacitors :รพ ... > def PaymentTable(balance, annualInterestRate, payment): You should not CamelCase function names. > upperbound = round((balance + (monthlyinterest * 12)) / 12, 0) Yo

[Tutor] TypeError: range() integer end argument expected, got float.

2013-11-29 Thread spinefxr
Hi Newbie at this. I am getting this error: TypeError: range() integer end argument expected, got float. Using python 7.3 here is my code def PaymentTable(balance, annualInterestRate, payment): month = 0 while month < 12: balance = balance - payment interest =