Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
a_t48
4y ago
0 comments
Save
Share
lst = [range(0, 10, 2)]
0 comments
3 comments · 1 top-level
top
newest
oldest
orlp
4y ago
· 2 in thread
That's wrong in multiple ways. You want
lst = list(range(0, 20, 2))
a_t48
OP
4y ago
Ohh, yeah, you're right.
voltagedivider
4y ago
Even simpler!
j
/
k
navigate · click thread line to collapse