Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
a_t48
on Jan 7, 2022
|
parent
|
context
|
favorite
| on:
5% of 666 Python repos had comma typo bugs (inc V8...
lst = [range(0, 10, 2)]
orlp
on Jan 7, 2022
[–]
That's wrong in multiple ways. You want
lst = list(range(0, 20, 2))
a_t48
on Jan 7, 2022
|
parent
|
next
[–]
Ohh, yeah, you're right.
voltagedivider
on Jan 7, 2022
|
parent
|
prev
[–]
Even simpler!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: