Hacker News new | ask | show | jobs
by cutler 1432 days ago
The else None is redundant, though. If you want a one-liner in Python just ignore the indentation:

    if date.today().weekday() == 5: print("It's Saturday")