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.

DAY = raw_input('What day is it? ').lower()[0:3]
TIME = raw_input('What time is it in a four digit number, no ":"? ')
SNOOZE = ()

SNOOZE = True if DAY == 'sat' or DAY == 'sun' or TIME < '0600' else False
if SNOOZE == False:
    print 'Beep! Beep! Beep! Beep! Beep!'

OK. I should have read what I typed. Certainly not your fault. That doesn’t make any sense. What is wrong with the highlighted line? I still keep getting the same error about if cond True: or if cond:. Based on the way it was explained in the question, SNOOZE needs to be set to True based on the conditions, else False. What am I missing?

Thank you.

KJ


From: Chad Heuschober [mailto:notifications@github.com]
Sent: Sunday, September 14, 2014 6:40 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,12 @@

> +#!/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 = ()

> +

> +SNOOZE = True if DAY == 'sat' and DAY == 'sun' or TIME < '0600' else False

The way it's written now it would have to be both saturday and sunday or before 6

—
Reply to this email directly or view it on GitHub<https://github.com/is210-2014-fall-02/is210_lesson_03/pull/2/files#r17523146>.