Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
raziel2p
on Oct 6, 2020
|
parent
|
context
|
favorite
| on:
Python 3.9
Bad example? x % 10 does not return a bool.
emptysea
on Oct 6, 2020
[–]
Whoops!
For future internet historians, it should have been:
sum(x % 10 == 0 for x in range(1000))
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: