Created
May 29, 2018 23:06
-
-
Save carlynorama/abd820e9b1dd015159223fc8e57a2312 to your computer and use it in GitHub Desktop.
Is it Tuesday?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
date = datetime.datetime.today() | |
def is_it_tuesday(date_to_check): | |
if date_to_check.weekday() == 1: | |
print("yes") | |
else: | |
print("no") | |
if __name__ == "__main__": | |
is_it_tuesday(date) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment