Look how unreadable it is. This is the main reason to avoid list comprehension because it makes code hard to read for humans.
No, you should not avoid list comprehensions, you should avoid unreadable code! That's quite a difference.
I agree. We can definitely use list comprehension to make out code look short and beautiful but complex logic in a list comprehension must be avoided.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.