Better HN
top
new
best
ask
show
jobs
Log in
Sign up
The most fun eight Python lines I've written | Better HN
The most fun eight Python lines I've written
(pastebin.com)
15 points · by
for_i_in_range
· 12y ago · 3 comments
Comments
[–]
foone
12y ago
BTW, the random module has a "choice" function, which takes a sequence and returns a randomly chosen element from it. So instead of "result[randrange(len(result))]" you could have "choice(result)"
[–]
lexnay
12y ago
is this a porn comments scraper? The only thing more diabolical would be a youtube comments scraper
[–]
coppolaemilio
12y ago
Thanks for sharing! hahahah xD