DEV Community

brendan
brendan

Posted on

Python List Comprehensions

List Comprehensions are a Pythonic, readable, and intuitive way to quickly generate and transform Lists from existing data structures.
Read more about integrating list comprehensions in your code.

Top comments (4)

Collapse
 
katiekodes profile image
Katie • Edited

Okay, so this post is just surfacing a link to a long tutorial that Katie Silverio wrote, without crediting her, so not thrilled about that.

But it's exactly the tutorial I'd been looking for to flesh out a "further reading" footnote, so thanks for bringing it to my attention. :) :P

astrosilverio image
Collapse
 
brendankite profile image
brendan

Hi! I'm new to dev.to, how did you add someone's profile to your message like that? Will do it in the future!

Collapse
 
katiekodes profile image
Katie • Edited

Hi, Brendan! Welcome to DEV!

{% user brendanmcd96 %}

From dev.to/p/editor_guide

In general, it's best practice to write the author's name down when sharing their work, even w/o a fancy link like these, so that people don't think you're spamming trying to get "clicks" for yourself using other people's writing.

It's also great for those authors' careers to give them a signal boost as people you think do quality work!

Collapse
 
codemouse92 profile image
Jason C. McDonald

We encourage the entire article to be published on DEV.to (if you have proper rights), with a linkback if appropriate. Otherwise, we recommend original material, such as an original commentary on the article. From the Terms of Use:

Users must make a good-faith effort to share content that is...not designed primarily for the purposes of promotion or creating backlinks. Additionally, posts must contain substantial content — they may not merely reference an external link that contains the full post.

Posts that are simply intended to encourage readers to view an external resource are discouraged.

Thank you.