Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
erlanger
17y ago
0 comments
Save
Share
I still find this clearer:
for x in range(1, 10): print x
0 comments
5 comments · 2 top-level
top
newest
oldest
ansin
17y ago
· 2 in thread
Not so different in Ruby:
for x in 1..10; print x end
erlanger
OP
17y ago
Yes, but we all know that Ruby is the haven of Devils!!
ansin
17y ago
Ad hominem.
1 more reply
lunchbox
17y ago
· 1 in thread
I'm nitpicking, but your range should be range(1,11).
erlanger
OP
17y ago
Every nit picked is valuable :)
j
/
k
navigate · click thread line to collapse