loading...

re: 10 Python Interview Questions and Answers for Freshers VIEW POST

FULL DISCUSSION
 

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.

code of conduct - report abuse