Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cutler
on July 16, 2022
|
parent
|
context
|
favorite
| on:
To Ruby from Python
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: