Python List Comprehension Is Not Just Syntactic Sugar | by Christopher Tao | Apr, 2024

“Pythonic” is not a good reason. Why is the performance better? When not to use it?I guess you must find out there are too many articles telling us to use the list comprehension rather than a for-loop in Python. I have seen too many. However, I’m kind of surprised that there was almost no article explaining why.