sleep_in¶
Ask the user if today is a weekday. Also ask them if today is a vacation. You sleep in if it is not a weekday or we’re on vacation. Output a message telling the user if they sleep in today. For the test cases below, False
means “no” and True
means “yes”.
This exercise was taken from codingbat.com and has been adapted for the Python language. There are many great programming exercises there, but the majority are created for Java.