Lesson 3

Leave a comment
I am not clear on this one i am I not understanding how < 200000 would not include 0-199999. I have no clue what you are looking for here. 

Sent from my iPhone

> On Sep 14, 2014, at 7:20 PM, Chad Heuschober <notifications@github.com> wrote:
> 
> In task_05.py:
> 
> > +    if int(T) > 20 < 31 and Q == 'yes':
> > +        R = .0466
> > +if int(P) > 1000000:
> > +    if int(T) < 16 and Q == 'yes':
> > +        R = .0205
> > +    if int(T) > 15 < 21 and Q == 'yes':
> > +        R = .0262
> > +
> > +TOTAL = int(round(int(P) * (1 + R / N) ** (N * int(T)), 0))
> > +REPORT = '''Loan Report For: {n}
> > +-----------------------------
> > +    Principal:      {pr} 
> > +    Duration:       {Time}
> > +    Prequalified?:  {q}
> > +    Total:          {total}'''.format(n=NAME, pr=P, Time=T, q=Q, total=TOTAL)
> > +print REPORT
> This one has a common error that many students are making which is to confuse a decimal with a floating point. The instructions direct you to use a decimal (which, allow me to remind you, is constructed by passing the decimal itself as a string to the Decimal() constructor.
> 
> One more missed direction is that TOTAL should be None when it doesn't fit a classification.
> 
> Another error that I can see is that you didnt' put an appropriate lower bound on the loan. In the table of values it states 0 --> 199,999. The test is testing for bad input as well as good so please be aware that you should guard your lower bounds as well as your upper ones.
> 
> —
> Reply to this email directly or view it on GitHub.