Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

Four Tricks for Comprehensions in Python - Tech.Pro

One of the finest features of the Python language are the list comprehension and it's lazy brother, the generator expression. The family has grown in Python 3 to include the equally useful dictionary and set comprehensions. They all sport a readable and intuitive syntax, but some patterns may be surprising for beginners. When used together with the itertools module, they provide for amazingly expressive shortcuts for all sorts of common problems.
No Soup for you

Don't be the product, buy the product!

YES, I want to SOUP ●UP for ...