3 ms·
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")
by cutler 4y 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")