3 ms·
This sort of intro-level Python problem is not really appropriate for HN. And, oddly, the title is "less than ten solutions" but the problem statement asks for
by eesmith 5y ago
This sort of intro-level Python problem is not really appropriate for HN.
And, oddly, the title is "less than ten solutions" but the problem statement asks for "less than 5"
_=[__import__("sys").stdout.write(f"{str(i)+chr(10) if i<5 else ''}") for i in a]
EDIT: and the links to this domain are almost entirely by one-off/green accounts - https://news.ycombinator.com/from?site=practicepython.org https://news.ycombinator.com/from?site=practicepython.org .