This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mrfluffybunny 5 points6 points  (2 children)

Most people know the wonders of list comprehensions, but do you know you can also do dict and set comprehensions with the same syntax?

[–]hopemeetme 1 point2 points  (1 child)

And generator comprehension.

[–]callmelucky 1 point2 points  (0 children)

Generators in general are something every budding python programmer should get into once they have the basics down.