Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Toolz: A functional standard library for Python. Parent comment
In [4]: f = lambda x: "Yes" if x else "No" In [5]: f(True) Out[5]: 'Yes' In [6]: f(False) Out[6]: 'No'
Loops don't work, but list comprehensions do, and they are definitely the way to go here. Multi-line loops deserve a `def`.
There are no comments on this comment yet.
Loops don't work, but list comprehensions do, and they are definitely the way to go here. Multi-line loops deserve a `def`.