Homework #3

I'm actually a little surprised this one worked and it's an FYI for the future. It would have been much simpler to set R to the string value inside your nested ifs, eg:

    ...
            if "y" in QUALIFIED:
                R = '0.0262'
            else:
                R = '0.0205'

    ...

    R = decimal.Decimal(R)