Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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")


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: