First Submission Lesson 03

I will not have a chance to work on task_05 tonight and I'm not getting the result I need for task_04.
Thanks, I’m learning that just because you are using a word does not mean that the computer will read it the same way you do.

On task 5, I’ve run into a problem with my loops.

import decimal
NAME = raw_input('What is your name? ')
PRINC = int(raw_input('How much will you be borrowing? '))
YEARS = int(raw_input('How many years are you borrowing for? '))
PRE_QUAL = raw_input('Have you been pre-qualified for a loan? Yes, y, No, n')
INT_RATE = ()

if 0 <= PRINC <= 199999:
    if 1 <= YEARS <= 15:
        if PRE_QUAL == ('Yes', 'y'):
            INT_RATE = 0.0363
        else:
            INT_RATE= 0.0465
    elif 16 <= YEARS <= 20:
        if PRE_QUAL == ('Yes', 'y'):
            INT_RATE = 0.0404
        else:
            INT_RATE = 0.0498
When I run this and enter the information, INT_RATE always returns (). Do I have too many/what am I doing wrong with the if statements? Is there something wrong with the way I formatted the interest rates as integers? Also, should I be able to lock in the option types for the pre-qualification question?

As long as I’m on the subject of homework. I did another pull of lesson 02 and I still am getting a few errors on my interpreter directive and I’m not sure why. I’ve gone over them and I don’t see anything wrong. Lastly, would you like us to do the resubmit on Blackboard by pasting another link to a pull to let you know we are complete?

By the way, I’m not sure what you had done, but I hope your recuperation is going well. Thanks for being a trooper with our course.

Best regards,

KJ
From: Chad Heuschober [mailto:notifications@github.com]
Sent: Saturday, September 13, 2014 9:14 PM
To: is210-2014-fall-02/is210_lesson_03
Cc: kevin.doles@spsmail.cuny.edu
Subject: Re: [is210_lesson_03] First Submission Lesson 03 (#2)


In task_04.py:

> @@ -0,0 +1,14 @@

> +#!/usr/bin/env python

> +# -*- coding: UTF-8 -*-

> +'''User is prompted for date and time. If conditions are met, initiates alarm.

> +'''

> +

> +DAY = raw_input('What day is it? ').lower()[0:3]

> +TIME = raw_input('What time is it in a four digit number, no ":"? ')

> +SNOOZE = ()

> +

> +if (DAY == 'sat' or 'sun') and (TIME < '0600'):

Hi kevin. This one's easy, it's in your 'sat', 'sun' part.

Day is comparing to sat but what's being compared against sun? Remember that non-empty strings are truthy so your 'sun' is always forcing truthiness.

—
Reply to this email directly or view it on GitHub<https://github.com/is210-2014-fall-02/is210_lesson_03/pull/2/files#r17515779>.