Audun Nes
1 min readJan 18, 2019

I enjoyed reading your article. It was well written and to the point. I have to admit though that I am not a big fan of list comprehension. Personally I find the syntax less intuitive than a regular for loop. You save some line of code, but at the expense of readability.

Now I feel a bit like the boy in the The Emperor’s New Clothes by Hans Christian Andersen, but somebody had to say it :-)

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Audun Nes
Audun Nes

Written by Audun Nes

Lead Cloud Engineer/Site Reliability Engineer from Copenhagen, Denmark. GitHub: https://github.com/avnes

Responses (1)

Write a response

Hi Audun Nes. Glad you liked the post.
I do have to agree that there are cases when the syntax for List Comprehension might seem counter-intuitive especially as the nesting gets deeper.
If you have several nested loops, it might be a good idea to…

--