Joined September 2012
·
Posted to
Flatten a list of lists in one line in Python
over 1 year
ago
Yeah that works too. Thanks. In fact the method you specify seems to be the fastest, followed by list comprehension, then distantly behind, the loop in a loop method.
Achievements
402 Karma
339,304 Total ProTip Views
Altruist
Increase developer well-being by sharing at least 20 open source projects
Komodo Dragon
Have at least one original repo where Java is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Forked
Have a project valued enough to be forked by someone else
Charity
Fork and commit to someone's open source project in need
Python 3
Have at least three original repos where Python is the dominant language
Python
Would you expect anything less? Have at least one original repo where Python is the dominant language
I for one do not find that hard to follow at all. If you have trouble understanding it, I'm sorry, but I don't agree with the assertion is anything but clean. If you don't think it's clean, how about sharing your clean method, rather than complaining about mine