TE
TechEcho
Home
24h Top
Newest
Best
Ask
Show
Jobs
English
GitHub
Twitter
Home
The most fun eight Python lines I've written
15 points
by
for_i_in_range
over 10 years ago
3 comments
foone
over 10 years 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
over 10 years ago
is this a porn comments scraper? The only thing more diabolical would be a youtube comments scraper
coppolaemilio
over 10 years ago
Thanks for sharing! hahahah xD