Skip to content

Python comprehensions are a powerful language feature that can greatly improve the productivity of a programmer and the readability of code. This article explores how comprehensions can be used to build concise solutions for problems that require generating various kinds of combinations of all the elements from a finite (or infinite) set.

License

Notifications You must be signed in to change notification settings

python-supply/comprehensions-and-combinations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

comprehensions-and-combinations

Python's comprehension syntax is a powerful language feature that, under the right circumstances, provides a way to implement workflows on collections (such as lists and sets) in a way that is concise and closely resembles widely used and recognized forms of mathematical notation. This article explores how comprehensions can be used as a foundational building block (that can be employed in conjunction with functions and recursion) to build concise solutions for problems that require defining or generating various kinds of combinations of all the elements from a finite (or infinite) collection.

About

Python comprehensions are a powerful language feature that can greatly improve the productivity of a programmer and the readability of code. This article explores how comprehensions can be used to build concise solutions for problems that require generating various kinds of combinations of all the elements from a finite (or infinite) set.

Topics

Resources

License

Stars

Watchers

Forks