Week 3 Assignment

Consider the following as a slightly sleeker solution:

    RATE = None
    TOTAL = None
    ...
         if QUALIFIED.lower()[0] == 'y':
             RATE = '0.0363'
    ...
    if RATE:
        TOTAL = round( ... decimal.Decimal(RATE) ... )

What this does is reduce a duplication of effort which, in turn, reduces the opportunity for error. Every character of code written is a vulnerable surface where mistakes or assumptions could be made. Repetition that is unnecessary widens the vulnerable surface considerably. Your code is great and your grasp of the concepts is strong; I just want you to be aware of how to be even better!